Skip to content

[BUG] AutoCompleteTextField crash with an indexoutofbounds exception #2770

Description

@ramsestom

In some edge cases AutoCompleteTextField was crashing and returning an indexoutofbounds exception. Fixed it in my fork by replacing line 523 if(((List)popup.getComponentAt(0)).getModel().getSize() == 0){ by if( popup.getComponentCount()==0 || ((List)popup.getComponentAt(0)).getModel().getSize() == 0){
(didn't bother to make a PR as it is a simple one line fix)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions