NPE when when doing setScene(null)
Original report by Anonymous.
If we set null value for scene I noticed exceptions being outputted, it's scenic view that generating the NPE:
Below is the stack trace:
java.lang.NullPointerException: null at org.fxconnector.StageControllerImpl.lambda$new$6(StageControllerImpl.java:171) at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:349) at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81) at javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(ReadOnlyObjectPropertyBase.java:74) at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:102) at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112) at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146) at javafx.stage.Window.setScene(Window.java:530) at javafx.stage.Stage.setScene(Stage.java:252)