Fixed potential NPE in AbstractValueSetSetting isDefault method

This commit is contained in:
Benjamin Barth committed 2016-06-13 11:16:07 +02:00
1 parent 68177c3615
commit b065a7146f
1 file changed
+1 -1
@@ -44,7 +44,7 @@ public abstract class AbstractValueSetSetting<T> extends AbstractValueCollection
@Override
public boolean isDefaultValue() {
ValueCollectionValue<Set<Value>> value = getValue();
return (emptyIsDefault && value.isEmpty())
return (emptyIsDefault && (value == null || value.isEmpty()))
|| (value.size() == defaultValues.size() && defaultValues.containsAll(value.getValues(getValueConverter())));
}