Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4409959

The removeIIOReadWarningListener() throws NullPointerException

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified



      Scenario : Adding / Removing read warning listener Add the read warning listener and check whether it is notified when any non-fatal error occurs while reading process is in progress.Remove the read update listener added and no method of the listener should be invoked thereafter

      Failure :removeIIOReadWarningListener() is throwing an Exception
         java.lang.NullPointerException
       Exception thrown

      java.lang.NullPointerException
              at ReadWarningBUG.warn(ReadWarningBUG.java:177)
              at ReadWarningBUG.actionPerformed(ReadWarningBUG.java:213)
              at java.awt.Button.processActionEvent(Button.java:354)
              at java.awt.Button.processEvent(Button.java:327)
              at java.awt.Component.dispatchEventImpl(Component.java:3460)
              at java.awt.Component.dispatchEvent(Component.java:3327)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
           The bug is occuring on all the platforms

      The Attached file has been changed

      The Exception thrown is as below

      java.lang.NullPointerException
              at javax.imageio.ImageReader.removeIIOReadWarningListener(ImageReader.java:1732)
              at ReadWarningBUG.actionPerformed(ReadWarningBUG.java:112)
              at java.awt.Button.processActionEvent(Button.java:354)
              at java.awt.Button.processEvent(Button.java:327)
              at java.awt.Component.dispatchEventImpl(Component.java:3460)
              at java.awt.Component.dispatchEvent(Component.java:3327)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      blessen.mathews@Eng 2001-01-31

            dricesunw Daniel Rice (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: