mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-11 02:07:38 +00:00
Fixed a NullPointerException in ifs without an else.
The NPE occured if the condition was not optimizable to a constant.
This commit is contained in:
parent
9f2f2fc6c9
commit
fd4e94220f
@ -74,6 +74,6 @@ public class Conditional extends Node {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Conditional(getPosition(), newCondition, truePart.optimize(), falsePart.optimize());
|
return new Conditional(getPosition(), newCondition, truePart.optimize(), falsePart == null ? null : falsePart.optimize());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user