diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 16:52:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 20:37:34 +0100 |
commit | 783859e861a421138baba25fada94bc05a929bde (patch) | |
tree | 4259f275760529e1e22935927a06b6b43992c2a0 /sw | |
parent | 57223dbe8f38508dcf478961d28ffeaa5cb3c227 (diff) |
coverity#1213088 Dereference after null check
Change-Id: I86ddf93e18594e9199dbcddca3ad32a58d5987dd
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/uibase/utlui/content.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/uibase/utlui/content.cxx b/sw/source/core/uibase/utlui/content.cxx index d2218d1e202c..85632be15373 100644 --- a/sw/source/core/uibase/utlui/content.cxx +++ b/sw/source/core/uibase/utlui/content.cxx @@ -2307,7 +2307,7 @@ void SwContentTree::ExecCommand(sal_uInt16 nCmd, bool bModifier) // Set cursor back to the current position pShell->GotoOutline( nActPos + nDir); } - else if(bModifier) + else if(bModifier && pFirstEntry) { sal_uInt16 nActEndPos = nActPos; SvTreeListEntry* pEntry = pFirstEntry; |