summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-07 09:29:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-07 10:14:49 +0100
commit98d8e26fb6597b4c29fd7baa0941b547dd10f055 (patch)
treec7ee7d98585b140264c59890c920bfa5520651ff /sw
parentd7c72fcd591909ded965b97c29c29e58a829bb45 (diff)
coverity#704960 Explicit null dereferenced
Change-Id: I7b2625cced4c30b2fa61f69fc36553faf6af035e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unostyle.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 8d14d4bafb3a..f8247ede7fdd 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -3940,6 +3940,10 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
default:
;
}
+
+ if( !pPropSet)
+ throw uno::RuntimeException();
+
SwAttrSet aSet( pDocShell->GetDoc()->GetAttrPool(), pRange );
const beans::PropertyValue* pSeq = Values.getConstArray();
sal_Int32 nLen = Values.getLength();