Hi,
I came across this exception today :
java.lang.NullPointerException
at
org.apache.batik.swing.svg.AbstractJSVGComponent.stopThenRun(AbstractJSVGComponent.java:708)
at
org.apache.batik.swing.svg.AbstractJSVGComponent.setSVGDocument(AbstractJSVGComponent.java:677)
at
org.apache.batik.swing.svg.AbstractJSVGComponent.setDocument(AbstractJSVGComponent.java:647)
at
com.gulfstream.software.constable.plugins.AbstractNodePlugin.renderSVG(AbstractNodePlugin.java:184)
at
com.gulfstream.software.constable.plugins.AbstractPlugin.renderSVG(AbstractPlugin.java:71)
at
com.gulfstream.software.mondrian.ide.JPanelWSDataView.loadPluginsToCanvas(JPanelWSDataView.java:196)
at
com.gulfstream.software.mondrian.ide.JPanelWorkspace.loadProjectItemToGUI(JPanelWorkspace.java:328)
at
com.gulfstream.software.mondrian.ide.JPanelWorkspace.loadSavedProjectItemsToGUI(JPanelWorkspace.java:346)
at
com.gulfstream.software.mondrian.ide.FrmMain.loadSavedProjectItem(FrmMain.java:612)
at
com.gulfstream.software.mondrian.framework.Main.main(Main.java:74)
In this bit of code in AbstractJSVGComponent r was being passed in as null
so it needs some null protection later on in the function.
protected void stopThenRun(final Runnable r) {
if (afterStopRunnable != null) {
// Have it run our new runnable, and not
// run the 'old' runnable.
afterStopRunnable = r;
return;
}
afterStopRunnable = r;
stopProcessing();
if ((documentLoader == null) &&
(gvtTreeBuilder == null) &&
(gvtTreeRenderer == null) &&
(svgLoadEventDispatcher == null) &&
(nextUpdateManager == null) &&
(updateManager == null)) {
Runnable asr = afterStopRunnable;
afterStopRunnable = null;
if ( asr != null ) { // added
asr.run(); // added
} // added
}
}
Best,
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]