diff --git a/highlevelilinstruction.cpp b/highlevelilinstruction.cpp index 3626dd547..c27e1251d 100644 --- a/highlevelilinstruction.cpp +++ b/highlevelilinstruction.cpp @@ -1103,7 +1103,8 @@ void HighLevelILInstruction::CollectSubExprs(stack& toProcess) const toProcess.push(GetConditionExpr().exprIndex); break; case HLIL_CASE: - toProcess.push(GetTrueExpr().exprIndex); + if (ast) + toProcess.push(GetTrueExpr().exprIndex); exprs = GetValueExprs(); for (auto i = exprs.rbegin(); i != exprs.rend(); ++i) toProcess.push(i->exprIndex);