mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 12:09:07 +00:00
What & debug fix
This commit is contained in:
@@ -37,6 +37,9 @@ public class BooleanHandler implements DecreeParameterHandler<Boolean> {
|
||||
@Override
|
||||
public Boolean parse(String in) throws DecreeParsingException {
|
||||
try {
|
||||
if (in.equals("null") || in.equals("other") || in.equals("flip")) {
|
||||
return null;
|
||||
}
|
||||
return Boolean.parseBoolean(in);
|
||||
} catch (Throwable e) {
|
||||
throw new DecreeParsingException("Unable to parse boolean \"" + in + "\"");
|
||||
|
||||
Reference in New Issue
Block a user