diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-30 20:46:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-30 21:21:29 +0100 |
commit | 582ecb83fb6e9bca9ea61634c764487259b62686 (patch) | |
tree | 053f9f530917c9345a6ba46c1fc0130c8bdd1842 /svx | |
parent | d637997d69ba3bd7bbad6f8cc1e0213f2c18d0d1 (diff) |
coverity#1194908 Explicit null dereferenced
Change-Id: I404d9990a060ef38915af126bf239136a9d00af2
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/properties/textproperties.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx index abd41ed1d448..59c92918ef41 100644 --- a/svx/source/sdr/properties/textproperties.cxx +++ b/svx/source/sdr/properties/textproperties.cxx @@ -283,7 +283,7 @@ namespace sdr SdrModel* pModel = rObj.GetModel(); SfxStyleSheetBasePool* pStylePool = (pModel != NULL) ? pModel->GetStyleSheetPool() : 0L; - SfxStyleSheet* pNewStyle = (SfxStyleSheet*)pStylePool->Find(aNewStyleSheetName, GetStyleSheet()->GetFamily()); + SfxStyleSheet* pNewStyle = pStylePool ? (SfxStyleSheet*)pStylePool->Find(aNewStyleSheetName, GetStyleSheet()->GetFamily()) : NULL; DBG_ASSERT( pNewStyle, "AutoStyleSheetName - Style not found!" ); if(pNewStyle) |