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 Dec 14 15:53:45 UTC 2022


On Tue, 13 Dec 2022 13:43:05 GMT, Tejesh R <tr at openjdk.org> wrote:

> Means checking for null when trying to insert null into MRI map?

Yes, because such an image is invalid — it will produce the NPE when it's rendered. If icon isn't available, `null` is to be returned directly to the caller.

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

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



More information about the client-libs-dev mailing list