diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/common/Properties.java')
-rw-r--r-- | wizards/com/sun/star/wizards/common/Properties.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/common/Properties.java b/wizards/com/sun/star/wizards/common/Properties.java index 764703c74ac2..2056921d36c6 100644 --- a/wizards/com/sun/star/wizards/common/Properties.java +++ b/wizards/com/sun/star/wizards/common/Properties.java @@ -72,15 +72,12 @@ public class Properties extends HashMap<String,Object> public static PropertyValue[] convertToPropertyValueArray(Object[] _oObjectArray) { PropertyValue[] retproperties = null; - if (_oObjectArray != null) + if (_oObjectArray != null && _oObjectArray.length > 0) { - if (_oObjectArray.length > 0) + retproperties = new PropertyValue[_oObjectArray.length]; + for (int i = 0; i < _oObjectArray.length; i++) { - retproperties = new PropertyValue[_oObjectArray.length]; - for (int i = 0; i < _oObjectArray.length; i++) - { - retproperties[i] = (PropertyValue) _oObjectArray[i]; - } + retproperties[i] = (PropertyValue) _oObjectArray[i]; } } return retproperties; |