diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 10:11:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 11:11:00 +0000 |
commit | db4414db20fa346e97db82b2aeacbc2981425ca9 (patch) | |
tree | 83ad0275e128dea3d3df042a4abe18ac739a59b4 /sc | |
parent | e93b9dc3db1190f26dd70e5f446adabcdbe8de48 (diff) |
coverity#1266450 Explicit null dereferenced
Change-Id: Ie675dc47d6008aa3ce947f8969895f32eb20b8c4
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 765a113ef0ef..6ecf137baafa 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -476,10 +476,13 @@ void ScInterpreter::ScChooseJump() GetTokenMatrixMap().insert( ScTokenMatrixMap::value_type( pCur, xNew)); } - PushTempToken( xNew.get()); - // set endpoint of path for main code line - aCode.Jump( pJump[ nJumpCount ], pJump[ nJumpCount ] ); - bHaveJump = true; + if (xNew.get()) + { + PushTempToken( xNew.get()); + // set endpoint of path for main code line + aCode.Jump( pJump[ nJumpCount ], pJump[ nJumpCount ] ); + bHaveJump = true; + } } } break; |