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]
Sergey Bylokhov
serb at openjdk.org
Thu Jan 12 02:10:20 UTC 2023
On Thu, 22 Dec 2022 05:13:34 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 R has updated the pull request incrementally with one additional commit since the last revision:
>
> Updated based on review comments
test/jdk/javax/swing/JFileChooser/8046391/bug8046391.java line 30:
> 28: * @summary JFileChooser hangs if displayed in Windows L&F
> 29: * @author Alexey Ivanov
> 30: * @key headful
If we assume that the bug is fixed by the code change we do not need to change the test.
-------------
PR: https://git.openjdk.org/jdk/pull/11104
More information about the client-libs-dev
mailing list