diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 09:22:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 16:45:08 +0100 |
commit | 2092a029bb4eeacc1029a11b77b6120d0ad3a9ff (patch) | |
tree | 12b8090b44b5e4f5141a092de689fb84452c6a67 | |
parent | coverity#1326382 Dereference null return value (diff) | |
download | core-2092a029bb4eeacc1029a11b77b6120d0ad3a9ff.tar.gz core-2092a029bb4eeacc1029a11b77b6120d0ad3a9ff.zip |
coverity#1326403 Dereference null return value
Change-Id: I1f191a2bc0139bada7603681eb0246de7dd15139
-rw-r--r-- | wizards/com/sun/star/wizards/form/UIControlArranger.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/form/UIControlArranger.java b/wizards/com/sun/star/wizards/form/UIControlArranger.java index 9e68a6f5cb43..566829dfa0dc 100644 --- a/wizards/com/sun/star/wizards/form/UIControlArranger.java +++ b/wizards/com/sun/star/wizards/form/UIControlArranger.java @@ -169,6 +169,9 @@ public class UIControlArranger if (curControlForm.getArrangemode() == FormWizard.COLUMNAR_LEFT) { Control[] LabelControls = curControlForm.getLabelControls(); + if (LabelControls == null) { + continue; + } for (int n = 0; n < LabelControls.length; n++) { LabelControls[n].xPropertySet.setPropertyValue(PropertyNames.PROPERTY_ALIGN, Short.valueOf(iAlignValue)); |