1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

exception in enum initializer has been fixed

This commit is contained in:
Nikolay Pultsin 2011-01-22 18:29:22 +00:00
parent 96d6de1cdf
commit 4b86a2adb0

View file

@ -33,7 +33,10 @@ public final class ZLEnumOption<T extends Enum<T>> extends ZLOption {
if (!myIsSynchronized) {
final String value = getConfigValue(null);
if (value != null) {
myValue = (T)T.valueOf(myDefaultValue.getClass(), value);
try {
myValue = (T)T.valueOf(myDefaultValue.getClass(), value);
} catch (Throwable t) {
}
}
myIsSynchronized = true;
}