RFR: 8293862: javax/swing/JFileChooser/8046391/bug8046391.java failed with 'Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "retVal" is null' [v4]

Tejesh R tr at openjdk.org
Thu Dec 22 05:13:34 UTC 2022


> Observation found when JFileChooser is instantiated in WindowsLookAndFeel which invokes getSystemIcon() from WindowsFileChooserUI class. Could not find the exact root cause so predicting it to be an issue with icons not loaded where resolutionVariants map is empty in _public Image getResolutionVariant(double width, double height) _. Hence proposing a null check before accessing getWidth(). Fix is tested in CI system.

Tejesh R has updated the pull request incrementally with one additional commit since the last revision:

  Updated based on review comments

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/11104/files
  - new: https://git.openjdk.org/jdk/pull/11104/files/120f7900..9dfccef1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11104&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11104&range=02-03

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/11104.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11104/head:pull/11104

PR: https://git.openjdk.org/jdk/pull/11104



More information about the client-libs-dev mailing list