On Tue, 20 Sep 2022 09:16:39 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> Test added for fix [JDK-6286501](https://bugs.openjdk.org/browse/JDK-6286501) > fails in macos citing > > java.lang.NullPointerException: Cannot invoke > "javax.swing.JTabbedPane.getSelectedIndex()" > because "this.this$0.tabPane" is null > at > java.desktop/com.apple.laf.AquaTabbedPaneUI$2.stateChanged(AquaTabbedPaneUI.java:813) > > > > for Aqua L&F owing to same issue as described in > https://github.com/openjdk/jdk/pull/10216#discussion_r971787291 wherein the > old instance is uninstalled and tabPane is reset to null when updateUI() is > called in stateChange Listener in testcase, so we need to use the tabPane > instance passed in TabbedPane's stateChange listener as has been done for > BasicTabbedPaneUI case. This pull request has now been integrated. Changeset: df8ec09f Author: Prasanta Sadhukhan <[email protected]> URL: https://git.openjdk.org/jdk/commit/df8ec09f8dd21de2910212a6d98c1970a2a1a3d3 Stats: 2 lines in 2 files changed: 1 ins; 0 del; 1 mod 8294046: Newly added test test/jdk/javax/swing/JTabbedPane/TestNPEStateChgListener.java fails in macos Reviewed-by: azvegint, prr ------------- PR: https://git.openjdk.org/jdk/pull/10354
