Ignore:
Timestamp:
2021-02-22T00:44:11+01:00 (3 years ago)
Author:
Don-vip
Message:

spotbugs - NP_NULL_PARAM_DEREF

File:
1 edited

Legend:

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

    r17269 r17522  
    377377                MainApplication.getLayerManager().addLayer(new NoteLayer());
    378378            }
    379             MainApplication.getMap().selectMapMode(new AddNoteAction(noteData));
     379            if (noteData != null) {
     380                MainApplication.getMap().selectMapMode(new AddNoteAction(noteData));
     381            }
    380382        }
    381383    }
Note: See TracChangeset for help on using the changeset viewer.