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

Image.getScaledImage throws NPE in headless mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 5.0
    • client-libs
    • 2d
    • sparc
    • solaris_8

      Image.getScaledImage throws a NullPointerException when run in headless (-Djava.awt.headless=true) mode. This is a regression which first appeared in Tiger build b05. This problem causes the following JCK test to fail:
      api/java_awt/java2d/image/BufferedImage/index.html#GetTesttestCase11.

      Attached is a very simple stand-alone test that illustrates the problem.

            Unassigned Unassigned
            pjr Paul Rank (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: