RFR: 8322239: [macos] a11y : java.lang.NullPointerException is thrown when focus is moved on the JTabbedPane

Alexey Ivanov aivanov at openjdk.org
Thu Feb 8 15:12:02 UTC 2024


On Tue, 6 Feb 2024 20:13:01 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> Add null check for the Aqua LnF situation when tab is hidden die to the tabs overflow.

I wonder if it's appropriate that location or dimension become `null`. I would expect these properties always return a non-`null` value, maybe in exceptional conditions.

If a tab becomes hidden because of the overflow, it is appropriate to return `null` from `getLocationOnScreen`.

What about the number of tabs reported? Is the original count still reported? The accessibility software should be able to “see” the number of tabs hasn't reduced.

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

PR Comment: https://git.openjdk.org/jdk/pull/17736#issuecomment-1934320061


More information about the client-libs-dev mailing list