diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 09:23:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 16:45:07 +0100 |
commit | 3af09eae62595a6c0895e7410f7be51f347a802a (patch) | |
tree | cf633448fb3f77b44d9d2dd713fd0e1a72761612 /wizards | |
parent | 12e2d518d89b349d989601e1aaa9e37ca5fba093 (diff) |
coverity#1326384 Dereference null return value
Change-Id: Ibf3c2ffb78740d55a6e6e4e6c66fb71b5b1c4c85
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/form/StyleApplier.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); |