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

coverity#1266450 Explicit null dereferenced

Change-Id: Ie675dc47d6008aa3ce947f8969895f32eb20b8c4
üst e93b9dc3
...@@ -476,12 +476,15 @@ void ScInterpreter::ScChooseJump() ...@@ -476,12 +476,15 @@ void ScInterpreter::ScChooseJump()
GetTokenMatrixMap().insert( ScTokenMatrixMap::value_type( GetTokenMatrixMap().insert( ScTokenMatrixMap::value_type(
pCur, xNew)); pCur, xNew));
} }
if (xNew.get())
{
PushTempToken( xNew.get()); PushTempToken( xNew.get());
// set endpoint of path for main code line // set endpoint of path for main code line
aCode.Jump( pJump[ nJumpCount ], pJump[ nJumpCount ] ); aCode.Jump( pJump[ nJumpCount ], pJump[ nJumpCount ] );
bHaveJump = true; bHaveJump = true;
} }
} }
}
break; break;
default: default:
{ {
......
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