RFR: 8336879: Always true condition 'img != null' in GTKPainter.paintPopupMenuBackground

Abhishek Kumar abhiscxk at openjdk.org
Wed Jul 24 06:36:32 UTC 2024


On Wed, 24 Jul 2024 06:12:45 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> I guess we can do if (!isHw && img!=null)

Thought of but "is it possible that img can be null when it is returned from GTKEngine.finishPainting() method as the BufferedImage instance is created there and returned? ".

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20308#discussion_r1689218735


More information about the client-libs-dev mailing list