- When calling `replace(Statement, Statement)`, if we hit the `variableAssignment` replacement check, first check and ensure it is not null`, try
hotfix/jcli_upgrade_fix
Tristan B. V. Kildaire 10 months ago
parent 220e4789c4
commit 239832a74a

@ -508,11 +508,16 @@ public class Variable : TypedEntity, MStatementSearchable, MStatementReplaceable
assignment = cast(VariableAssignment)that; assignment = cast(VariableAssignment)that;
return true; return true;
} }
/* Recurse on the variable assignment */ /* Recurse on the variable assignment (if there is one) */
else else if(assignment !is null)
{ {
return assignment.replace(thiz, that); return assignment.replace(thiz, that);
} }
/* Exhausted all possibilities */
else
{
return false;
}
} }
/** /**

Loading…
Cancel
Save