RFR: 8376169: JPopupMenu.setInvoker(null) causes NPE [v3]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Jan 30 03:20:38 UTC 2026


On Fri, 30 Jan 2026 02:30:35 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Also, I dont think ui null is valid combination as it means the L&F delegate is not set yet which normally handles the listeners
>
> But the check for ui != null is there, and it should be possible to call this code when its null, no?

I didnt say setInvoker cannot be called with ui null..As I see and mentioned it probably will receive the events but it will not be acted upon as container is invalid and UI delegate handling the listener is not set yet
and lastly whatever the course is, it is same now as it is before JDK-4938801 fix..

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29377#discussion_r2744441521


More information about the client-libs-dev mailing list