From 98d8e26fb6597b4c29fd7baa0941b547dd10f055 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 7 Apr 2014 09:29:13 +0100 Subject: coverity#704960 Explicit null dereferenced Change-Id: I7b2625cced4c30b2fa61f69fc36553faf6af035e --- sw/source/core/unocore/unostyle.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw') 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(); -- cgit