Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1313

NPE in DefaultXBLManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.14
    • None
    • Bridge
    • None

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            erich.schubert Erich Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: