Fix possible npe

This commit is contained in:
Vitaliy 2021-03-22 10:54:44 +02:00
parent a8c732df4e
commit 9e364a0103

View file

@ -30,7 +30,7 @@ public class EnumStringPreference<E extends Enum<E>> extends CommonPreference<E>
@Override
protected String toString(E o) {
return o.name();
return o == null ? null : o.name();
}
@Override