Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8304142 | jfx17.0.7 | Johan Vos | P4 | Resolved | Fixed |
Calling TableView.queryAccessibleAttribute(AccessibleAttribute.FOCUS_ITEM); with a null focus model results in an NPE
added to TableViewTest:
```
@Ignore("JDK-8296413")
@Test
public void testQueryAccessibleAttributeFocusItemWithNullFocusModel() {
table.getItems().addAll("1", "2");
table.setFocusModel(null);
stageLoader = new StageLoader(table);
Object result = table.queryAccessibleAttribute(AccessibleAttribute.FOCUS_ITEM);
assertNull(result);
}
```
ALSO
- see if TreeTableView has the same issue
- check whether other Controls throw exceptions from queryAccessibleAttribute(), trying all possible AccessibleAttribute values
added to TableViewTest:
```
@Ignore("
@Test
public void testQueryAccessibleAttributeFocusItemWithNullFocusModel() {
table.getItems().addAll("1", "2");
table.setFocusModel(null);
stageLoader = new StageLoader(table);
Object result = table.queryAccessibleAttribute(AccessibleAttribute.FOCUS_ITEM);
assertNull(result);
}
```
ALSO
- see if TreeTableView has the same issue
- check whether other Controls throw exceptions from queryAccessibleAttribute(), trying all possible AccessibleAttribute values
- backported by
-
JDK-8304142 Tree/TableView with null focus model throws NPE in queryAccessibleAttribute()
- Resolved
- clones
-
JDK-8187145 (Tree)TableView with null selectionModel: throws NPE on sorting
- Resolved
- relates to
-
JDK-8279640 ListView with null SelectionModel/FocusModel throws NPE
- Resolved
- links to
-
Commit openjdk/jfx17u/a094252f
-
Commit openjdk/jfx/e866a6c3
-
Review openjdk/jfx17u/124
-
Review openjdk/jfx/938
(2 links to)