summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-07 09:36:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-07 10:14:49 +0100
commit3982bcd07349d8c8c6ab00d7777c6a9a6f4a8ddb (patch)
tree5d6e986b27c730289129fb354ea97994cf5f790f /sw
parent89fe93e4597ff117361df889e0a347ff009abc42 (diff)
coverity#705018 Explicit null dereferenced
Change-Id: I13777df8fbe03aae8f55491fef144d48da3bb312
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/uibase/index/toxmgr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/uibase/index/toxmgr.cxx b/sw/source/core/uibase/index/toxmgr.cxx
index 2b4964af471c..67845e719b90 100644
--- a/sw/source/core/uibase/index/toxmgr.cxx
+++ b/sw/source/core/uibase/index/toxmgr.cxx
@@ -150,6 +150,10 @@ void SwTOXMgr::InsertTOXMark(const SwTOXMarkDescription& rDesc)
break;
default:; //prevent warning
}
+
+ if (!pMark)
+ return;
+
pSh->StartAllAction();
pSh->SwEditShell::Insert(*pMark);
pSh->EndAllAction();