Changeset 18483 in josm for trunk


Ignore:
Timestamp:
2022-06-09T15:44:34+02:00 (23 months ago)
Author:
taylor.smock
Message:

NotesDialog: Fix test broken in r18479, see #21600

The test ensures that updates to the dialog do not
cause a IOOBE, which often only occurs when a note
is closed and the user is filtering for open notes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java

    r18479 r18483  
    215215     */
    216216    public void selectionChanged() {
    217         if (noteData == null || noteData.getSelectedNote() == null) {
     217        if (noteData == null || noteData.getSelectedNote() == null || displayList.getModel().getSize() == 0) {
    218218            displayList.clearSelection();
    219219        } else {
Note: See TracChangeset for help on using the changeset viewer.