geforkt von Mirrors/FastAsyncWorldEdit
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:
Ursprung
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren