summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-30 20:46:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-30 21:21:29 +0100
commit582ecb83fb6e9bca9ea61634c764487259b62686 (patch)
tree053f9f530917c9345a6ba46c1fc0130c8bdd1842 /svx
parentd637997d69ba3bd7bbad6f8cc1e0213f2c18d0d1 (diff)
coverity#1194908 Explicit null dereferenced
Change-Id: I404d9990a060ef38915af126bf239136a9d00af2
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/properties/textproperties.cxx2
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)