From 6592214139290634550860697116801883131153 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sat, 12 Jul 2025 21:45:43 -0400 Subject: Allow constructing MLILFunction with null LLILFunction/Function --- mediumlevelil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediumlevelil.cpp') diff --git a/mediumlevelil.cpp b/mediumlevelil.cpp index 2eb2f9bd..4f6afe27 100644 --- a/mediumlevelil.cpp +++ b/mediumlevelil.cpp @@ -33,7 +33,7 @@ MediumLevelILLabel::MediumLevelILLabel() MediumLevelILFunction::MediumLevelILFunction(Architecture* arch, Function* func, LowLevelILFunction* lowLevelIL) { - m_object = BNCreateMediumLevelILFunction(arch->GetObject(), func->GetObject(), lowLevelIL->GetObject()); + m_object = BNCreateMediumLevelILFunction(arch->GetObject(), func ? func->GetObject() : nullptr, lowLevelIL ? lowLevelIL->GetObject() : nullptr); } -- cgit v1.3.1