summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-22 21:07:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:28:23 +0000
commit297c78b819f8bae726d9d4b9c749cc21223dd78b (patch)
tree385ca4a5b10c38c4670c3492f3658e441d75ce31 /sfx2
parentcoverity#704988 Dereference after null check (diff)
downloadcore-297c78b819f8bae726d9d4b9c749cc21223dd78b.tar.gz
core-297c78b819f8bae726d9d4b9c749cc21223dd78b.zip
coverity#441618 Dereference null return value
Change-Id: Id3e2ba08093bc618c17485122579898301df14d8
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/frame.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index 357b3e102e73..f565c8b54a2c 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -910,7 +910,8 @@ void SfxFrame::Resize()
if ( nHandle )
{
SfxObjectShell* pDoc = reinterpret_cast< SfxObjectShell* >( sal::static_int_cast< sal_IntPtr >( nHandle ));
- pWork = SfxViewFrame::GetFirst( pDoc )->GetFrame().GetWorkWindow_Impl();
+ SfxViewFrame *pFrame = SfxViewFrame::GetFirst( pDoc );
+ pWork = pFrame ? pFrame->GetFrame().GetWorkWindow_Impl() : NULL;
}
}