Kaydet (Commit) 332a67af authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736759 Dereference before null check

Change-Id: Ia36e192d32c46a5c1129eca050b2863ec1213bb4
üst 9e2ca10d
......@@ -413,11 +413,12 @@ void ONthOperator::Exec(OCodeStack& rCodeStack)
OSL_ENSURE(!rCodeStack.empty(),"Stack must be none empty!");
pOperand = rCodeStack.top();
rCodeStack.pop();
if ( !IS_TYPE(OStopOperand,pOperand) )
assert(pOperand);
if (pOperand && !IS_TYPE(OStopOperand,pOperand))
aValues.push_back( pOperand->getValue() );
aOperands.push_back( pOperand );
}
while ( !IS_TYPE(OStopOperand,pOperand) );
while (pOperand && !IS_TYPE(OStopOperand,pOperand));
rCodeStack.push(new OOperandResult(operate(aValues)));
......
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