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

NPE in PrismImage.toDataURL when browsing web pages with images

XMLWordPrintable

    • 9

      To reproduce this:

      1. Run a simple WebBrowser app (e.g., WebLauncher) that does not otherwise reference javafx.scene.image.Image in the app.

      2. Load: www.yahoo.com

      3. Scroll around or click on a few links

      4. BUG: you will eventually get the following exception:

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at com.sun.javafx.webkit.prism.PrismImage.toDataURL(PrismImage.java:68)
      at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
      at com.sun.webkit.Timer.fireTimerEvent(Timer.java:83)
      at com.sun.webkit.Timer.notifyTick(Timer.java:64)
      at javafx.scene.web.WebEngine$PulseTimer.lambda$static$0(WebEngine.java:1201)
      at com.sun.javafx.tk.Toolkit.lambda$runPulse$3(Toolkit.java:365)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:364)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:391)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
      at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:319)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$8(GtkApplication.java:191)
      at java.lang.Thread.run(Thread.java:804)

            ckyang Chien Yang (Inactive)
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: