Hi Tomas, I have an editor with a rich text area using a popup.
The editor is made in such a way that there can be multiple text editing areas. Each area comes as its own scene (from an FXML).
So in my setup there can be multiple popups per editing area/scene.
I noticed that if I close the stage of my editor when a pop up is showing, I get this error below. If close with no popup showing, i don't get an error. I am not sure if this is something I can fix on my end. Any help would be greatly appreciated :D
This is the error (seems like it is related to scene update):
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.sun.javafx.tk.quantum.WindowStage.setBounds(WindowStage.java:288)
at javafx.stage.Window$TKBoundsConfigurator.apply(Window.java:1171)
at javafx.stage.Window$TKBoundsConfigurator.pulse(Window.java:1187)
at com.sun.javafx.tk.Toolkit$3.run(Toolkit.java:321)
at com.sun.javafx.tk.Toolkit$3.run(Toolkit.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:319)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:345)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:479)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
at com.sun.javafx.tk.quantum.QuantumToolkit$13.run(QuantumToolkit.java:327)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
at java.lang.Thread.run(Thread.java:745)
this error keeps getting printed to the output consol.
this is the java code where the error happens (WindowStage.java:288) at the platformWindow.setBounds() method:
@Override public void setBounds(float x, float y, boolean xSet, boolean ySet,
float w, float h, float cw, float ch,
float xGravity, float yGravity)
{
if (isAppletStage) {
xSet = ySet = false;
}
platformWindow.setBounds((int)x, (int)y, xSet, ySet,
(int)w, (int)h, (int)cw, (int)ch,
xGravity, yGravity);
}
Is this because of my editor setup (editor scene, loading text-editing area scene)?
Hi Tomas, I have an editor with a rich text area using a popup.
The editor is made in such a way that there can be multiple text editing areas. Each area comes as its own scene (from an FXML).
So in my setup there can be multiple popups per editing area/scene.
I noticed that if I close the stage of my editor when a pop up is showing, I get this error below. If close with no popup showing, i don't get an error. I am not sure if this is something I can fix on my end. Any help would be greatly appreciated :D
This is the error (seems like it is related to scene update):
this error keeps getting printed to the output consol.
this is the java code where the error happens (WindowStage.java:288) at the platformWindow.setBounds() method:
Is this because of my editor setup (editor scene, loading text-editing area scene)?