coverity#1326403 Dereference null return value

Change-Id: I1f191a2bc0139bada7603681eb0246de7dd15139
This commit is contained in:
Caolán McNamara
2015-10-22 09:22:17 +01:00
parent b8562697c9
commit 2092a029bb

View File

@@ -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));