mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
Fixed potential NPE in AbstractValueSetSetting isDefault method
This commit is contained in:
1 parent
68177c3615
commit
b065a7146f
1 file changed
+1
-1
+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())));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user