summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-26 09:29:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-26 12:14:34 +0000
commitc38a384cddfbdf8c20f01bdb87b170133bc30e59 (patch)
tree61cc3c7c1197549384c6b7aee1ab83143b08ad42 /sc
parentc3666f94792777f856a794b205c07191ff33b39b (diff)
coverity#1266450 Explicit null dereferenced
Change-Id: Ia9a2ef623eeeed1d31bf62a18086b540dc394810
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr1.cxx5
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 ] );