summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-22 09:32:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-22 16:45:08 +0100
commitb8562697c971922ee57099817297d6ad3713f9f9 (patch)
treeb4293cd8486c2e735829535529928b1295077815
parent3af09eae62595a6c0895e7410f7be51f347a802a (diff)
coverity#1326382 Dereference null return value
Change-Id: I1c427c3d6cae2cf1798adcc29cd6f5f51eb2b49e
-rw-r--r--wizards/com/sun/star/wizards/form/StyleApplier.java3
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 eda18d38f6f0..3f20fd818965 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -409,6 +409,9 @@ public class StyleApplier
for (int i = 0; i < 2; i++)
{
XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i);
+ if (xPropertySet == null) {
+ continue;
+ }
setDBControlColors(xPropertySet, _iStyleColors);
}
}