summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-29 21:19:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-30 11:43:36 +0100
commit04503ecdbeccd6e46dc8f716a996d6d894bc1825 (patch)
tree6ff0db553836970c19d1cb60d1c725e8fe3770dd /sfx2
parent03bc0110e2926c7246e113ae5d45e14f26c4fe73 (diff)
coverity#704797 Dereference after null check
Change-Id: I4faf814dff06a2a5627af1c74ff46d2eb11bc62b
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewprn.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index 72555b12f066..8007221e9230 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -448,6 +448,10 @@ IMPL_LINK_NOARG(SfxDialogExecutor_Impl, Execute)
_pOptions = ( (SfxPrinter*)_pSetupParent->GetPrinter() )->GetOptions().Clone();
}
+ assert(_pOptions);
+ if (!_pOptions)
+ return 0;
+
// Create Dialog
SfxPrintOptionsDialog* pDlg = new SfxPrintOptionsDialog( static_cast<Window*>(_pSetupParent),
_pViewSh, _pOptions );