RFR: 8203463: [Accessibility, Narrator] NPE in TableView

Kevin Rushforth kcr at openjdk.java.net
Wed Dec 22 13:56:17 UTC 2021


On Wed, 22 Dec 2021 08:59:53 GMT, eduardsdv <duke at openjdk.java.net> wrote:

> The NullPointer occurs when `Accessible.getAttribute(Object)` returns null. 
> I checked all places where the `getAttribute(..)` method is called. Everywhere it is checked for null `(Accessible,` `MacAccessible,` `WinAccessible,` `WinTextRangeProvider`). Only at this one place in `WinAccessible.GetPatternProvider(int)` it is missing.
> 
> This PR adds this missing null-check in the `WinAccessible.GetPatternProvider(int)` method.

This looks like an obviously correct fix to me.

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

Marked as reviewed by kcr (Lead).

PR: https://git.openjdk.java.net/jfx/pull/700


More information about the openjfx-dev mailing list