You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Erich Schubert (Jira)" <ji...@apache.org> on 2021/07/02 10:13:00 UTC
[jira] [Created] (BATIK-1313) NPE in DefaultXBLManager
Erich Schubert created BATIK-1313:
-------------------------------------
Summary: NPE in DefaultXBLManager
Key: BATIK-1313
URL: https://issues.apache.org/jira/browse/BATIK-1313
Project: Batik
Issue Type: Bug
Components: Bridge
Affects Versions: 1.14
Reporter: Erich Schubert
Looks like the imports may sometimes be null. I do not have a test case, it likely may be due to threading. Either way, the code should be more robust here and do a null check.
java.lang.NullPointerException
at org.apache.batik.bridge.svg12.DefaultXBLManager.stopProcessing(DefaultXBLManager.java:254)
at org.apache.batik.dom.AbstractDocument.setXBLManager(AbstractDocument.java:1729)
at org.apache.batik.bridge.UpdateManager.initializeScriptingEnvironment(UpdateManager.java:208)
at org.apache.batik.bridge.UpdateManager.<init>(UpdateManager.java:167)
at org.apache.batik.swing.svg.JSVGComponent.startSVGLoadEventDispatcher(JSVGComponent.java:878)
at org.apache.batik.swing.svg.JSVGComponent$SVGListener.gvtBuildCompleted(JSVGComponent.java:1551)
at org.apache.batik.swing.svg.GVTTreeBuilder$2.dispatch(GVTTreeBuilder.java:164)
at org.apache.batik.util.EventDispatcher.dispatchEvent(EventDispatcher.java:103)
at org.apache.batik.util.EventDispatcher.fireEvent(EventDispatcher.java:87)
at org.apache.batik.util.EventDispatcher$1.run(EventDispatcher.java:46)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org