Skip to content

Commit 40a395b

Browse files
bdash0cyn
authored andcommitted
[PseudoObjC] Handle named type references to types that don't exist
1 parent 2524e2c commit 40a395b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/c/pseudoobjc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ void PseudoObjCFunction::GetExpr_CONST_PTR(const BinaryNinja::HighLevelILInstruc
359359
GetFunction()->GetView()->GetTypeByRef(variable.type->GetNamedTypeReference()) :
360360
variable.type.GetValue();
361361

362-
if (type->GetClass() != StructureTypeClass)
362+
if (!type || type->GetClass() != StructureTypeClass)
363363
return PseudoCFunction::GetExpr_CONST_PTR(instr, tokens, settings, precedence, statement);
364364

365365
auto structureName = type->GetStructureName().GetString();

0 commit comments

Comments
 (0)