3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-10 05:20:04 +01:00

Fixed a NullPointerException in ifs without an else.

The NPE occured if the condition was not optimizable to a constant.
Dieser Commit ist enthalten in:
TomyLobo 2012-07-13 12:16:15 +02:00
Ursprung 9f2f2fc6c9
Commit fd4e94220f

Datei anzeigen

@ -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());
} }
} }