diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 09:29:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:34 +0000 |
commit | c38a384cddfbdf8c20f01bdb87b170133bc30e59 (patch) | |
tree | 61cc3c7c1197549384c6b7aee1ab83143b08ad42 | |
parent | c3666f94792777f856a794b205c07191ff33b39b (diff) |
coverity#1266450 Explicit null dereferenced
Change-Id: Ia9a2ef623eeeed1d31bf62a18086b540dc394810
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 16d00523c961..765a113ef0ef 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -174,6 +174,11 @@ void ScInterpreter::ScIfJump() xNew = new ScJumpMatrixToken( pJumpMat ); GetTokenMatrixMap().insert( ScTokenMatrixMap::value_type(pCur, xNew)); } + if (!xNew.get()) + { + PushIllegalArgument(); + return; + } PushTempToken( xNew.get()); // set endpoint of path for main code line aCode.Jump( pJump[ nJumpCount ], pJump[ nJumpCount ] ); |