JDK-8049996 : [macosx] test java/awt/image/ImageIconHang.java fails with NPE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u20,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2014-07-11
  • Updated: 2015-01-21
  • Resolved: 2014-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
9 b26Fixed
test java/awt/image/ImageIconHang.java fails with NPE on Mac OSX platfrom

SQE OK to defer the fix to 8u25

8u20-critical-request: Justification: regression in 8u20 Fix risks: no risk, fix is a one-liner, just adding a missed null check and fixes a typo. The fix: http://cr.openjdk.java.net/~pchelko/9/8049998/webrev/ The review thread: http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008211.html Suggested testing: the java/awt/image/ImageIconHang.java regression test

Fix is ready and successfully reviewed

This is a regression of the JDK-8011059 where the isValiPath method was introduced

Not reproduced with 8u5. Reproduced since 8u20 b01

is it reproducible on 8 GA? 8u5?

Testsuite name: jdk_awt Test name(s): java/awt/image/ImageIconHang.java Product(s) tested: JDK 8 u20 b20 OS/architecture: Mac OSX Is it a platform specific issue: Yes Test log location: http://aurora.ru.oracle.com/slot-gw/528340.ute.st2-1/results/workDir/java/awt/image/ImageIconHang.jtr Call to Toolkit.getDefaultToolkit().getImage((String) null); produces NPE: java.lang.NullPointerException at sun.lwawt.macosx.LWCToolkit.isValidPath(LWCToolkit.java:894) at sun.lwawt.macosx.LWCToolkit.getScaledImageName(LWCToolkit.java:876) at sun.lwawt.macosx.LWCToolkit.getImage(LWCToolkit.java:541) at ImageIconHang.main(ImageIconHang.java:35)