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:
parent
96d6de1cdf
commit
4b86a2adb0
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@ public final class ZLEnumOption<T extends Enum<T>> extends ZLOption {
|
|||
if (!myIsSynchronized) {
|
||||
final String value = getConfigValue(null);
|
||||
if (value != null) {
|
||||
try {
|
||||
myValue = (T)T.valueOf(myDefaultValue.getClass(), value);
|
||||
} catch (Throwable t) {
|
||||
}
|
||||
}
|
||||
myIsSynchronized = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue