Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      JavaFX 2.2b19, Windows 7

      Description

      Getting this NPE sometimes when calling PixelReader's getPixelFormat. It is not documented to throw this exception.

      java.lang.NullPointerException
      at com.sun.javafx.image.PixelUtils.getGetter(PixelUtils.java:120)
      at com.sun.prism.Image$Accessor.<init>(Image.java:640)
      at com.sun.prism.Image$ByteAccess.<init>(Image.java:735)
      at com.sun.prism.Image$UnsupportedAccess.<init>(Image.java:871)
      at com.sun.prism.Image$UnsupportedAccess.<init>(Image.java:869)
      at com.sun.prism.Image.getPixelAccessor(Image.java:518)
      at com.sun.prism.Image.getPlatformPixelFormat(Image.java:538)
      at javafx.scene.image.Image$2.getPixelFormat(Image.java:1104)
      at hs.mediasystem.util.ImageCache.getApproximateImageSize(ImageCache.java:81)
      at hs.mediasystem.util.ImageCache.access$0(ImageCache.java:80)
      at hs.mediasystem.util.ImageCache$ImageWeakReference.<init>(ImageCache.java:159)
      at hs.mediasystem.util.ImageCache.store(ImageCache.java:70)
      at hs.mediasystem.util.ImageCache.loadImage(ImageCache.java:42)
      at hs.mediasystem.beans.AsyncImageProperty$2.run(AsyncImageProperty.java:58)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                jhendrikx John Hendrikx
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: