Hello, Everyone --
I am faced with a bit of difficulty tracking down a null pointer. I am only
slightly experienced with Exceptions, but thus far I seem to have been
relatively successful at using them in my code. However, my new problem is
that I cannot connect the null pointer exception to any of my code. I believe
I have the error surrounded by the try-catch block, but the stack trace seems
to me to be only telling me about deep down in java code. I have printed part
of the stack trace below. In the actual run, this is repeated, as more than
one Mouse Dragging event is being detected. The first three lines are just
System.outs of my code line numbers.
I tried using the Netbeans debugger (which I am not at all familiar with) and
got the same output.
Any suggestions for how I might approach this error detection are much
appreciated!
-- Chris
-----------------------------------------------------------
190 ----- DragableAnchorPane, begin resizeViaMouse(MouseEvent event)
195 -----===== state = S_RESIZE
243 ----- DragableAnchorPane, end resizeViaMouse(MouseEvent event)
java.lang.NullPointerException
at
javafx.graphics/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:214)
at
javafx.graphics/com.sun.javafx.sg.prism.NGCanvas.initCanvas(NGCanvas.java:644)
at
javafx.graphics/com.sun.javafx.sg.prism.NGCanvas.renderContent(NGCanvas.java:607)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
at
javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
at
javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:578)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
at
javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
at
javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:578)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
at
javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
at
javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:578)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
at
javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
at
javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:578)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
at
javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
at
javafx.graphics/com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:479)
at
javafx.graphics/com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:328)
at
javafx.graphics/com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:91)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at
java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at javafx.graphics/com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at
javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
at java.base/java.lang.Thread.run(Thread.java:832)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists