RFR: 6286501: JTabbedPane throws NPE from its stateChanged listener in particular case

Jayathirth D V jdv at openjdk.org
Fri Sep 16 05:47:46 UTC 2022


On Thu, 8 Sep 2022 09:46:03 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> JTabbedPane throws NPE from its stateChanged listener as it tries to access uninstantiated TabbedPane.
> Fix is to use the tabPane passed to stateChangeListener so that correct tabPane is accessed.

Marked as reviewed by jdv (Reviewer).

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

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



More information about the client-libs-dev mailing list