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

Alexey Ivanov aivanov at openjdk.org
Wed Nov 23 22:32:43 UTC 2022


On Fri, 11 Nov 2022 08:18:19 GMT, Tejesh R <tr at openjdk.org> wrote:

> 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 is testing the approach to get more details about the failure.

I agree the issue is creating noise.

If you problem-list the test (the two tests), he will be able to remove the test(s) from the problem list for his experiments.

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

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



More information about the client-libs-dev mailing list