From 3af09eae62595a6c0895e7410f7be51f347a802a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 22 Oct 2015 09:23:24 +0100 Subject: coverity#1326384 Dereference null return value Change-Id: Ibf3c2ffb78740d55a6e6e4e6c66fb71b5b1c4c85 --- wizards/com/sun/star/wizards/form/StyleApplier.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java index b61ce95b1383..eda18d38f6f0 100644 --- a/wizards/com/sun/star/wizards/form/StyleApplier.java +++ b/wizards/com/sun/star/wizards/form/StyleApplier.java @@ -272,6 +272,9 @@ public class StyleApplier for (int i = 0; i < 2; i++) { XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i); + if (xPropertySet == null) { + continue; + } if (xPropertySet.getPropertySetInfo().hasPropertyByName(PropertyNames.PROPERTY_BORDER)) { xPropertySet.setPropertyValue(PropertyNames.PROPERTY_BORDER, IBorderValue); -- cgit