diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-24 09:46:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-24 12:53:09 +0000 |
commit | 662283db76783be9cf44a16aa2b1d7b475088c83 (patch) | |
tree | 44c06a036685f686eb2471ce916bf8f22b48fa04 /sc | |
parent | e40a7f2e59f87467f552094564cbbe34ff936f4b (diff) |
coverity#735810 Dereference after null check
Change-Id: I005ae6bf505fd2131c06e889f9fc3c12dae23c64
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 275f3af860c0..c1ef3e4aa811 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -2062,8 +2062,8 @@ void ScDocShell::GetPageOnFromPageStyleSet( const SfxItemSet* pStyleSet, } OSL_ENSURE( pStyleSet, "PageStyle-Set not found! :-(" ); - - + if (!pStyleSet) + return; const SvxSetItem* pSetItem = NULL; const SfxItemSet* pSet = NULL; |