Kaydet (Commit) d6f852ef authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Avoid crash

Sure, this is probably "defensive coding" and the root cause is my other
changes...

Change-Id: Ia888921fddc48dc022a3205c7e0abc7e2160cf5c
üst 1a41d97f
...@@ -2224,7 +2224,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( ...@@ -2224,7 +2224,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(
for (unsigned i = 0; i < nChildren; i++) for (unsigned i = 0; i < nChildren; i++)
{ {
FormulaToken* pChild = ft->Children[i]->GetFormulaToken(); FormulaTreeNodeRef rChild = ft->Children[i];
if (!rChild)
throw Unhandled();
FormulaToken* pChild = rChild->GetFormulaToken();
if (!pChild) if (!pChild)
throw Unhandled(); throw Unhandled();
OpCode opc = pChild->GetOpCode(); OpCode opc = pChild->GetOpCode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment