summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-19 15:33:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-19 15:42:51 +0100
commit6c39f7bba64fd55488f840675fa83c3ba241bc74 (patch)
treecda23c79eb1355229ed0030d96fb08dcf8f7f085
parent4ec44fc1a8cf7cdfb6ddceacdaf7354551064971 (diff)
afl-eventtesting: pCursor is null
Change-Id: I24d29ffc3cfcb00e513a5267619e143b028355ce
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index fafaafe8eedd..7993f5dae0d3 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1083,6 +1083,8 @@ void SdPageObjsTLB::KeyInput( const KeyEvent& rKEvt )
{
// commented code from svtools/source/contnr/svimpbox.cxx
SvTreeListEntry* pCursor = GetCurEntry();
+ if (!pCursor)
+ return;
if( pCursor->HasChildren() || pCursor->HasChildrenOnDemand() )
{
if( IsExpanded( pCursor ) )