Ignore:
Timestamp:
2015-12-29T19:06:40+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #12253 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/NoteData.java

    r8870 r9213  
    9393    public NoteData(Collection<Note> notes) {
    9494        noteList = new Storage<>();
    95         for (Note note : notes) {
    96             noteList.add(note);
    97             if (note.getId() <= newNoteId) {
    98                 newNoteId = note.getId() - 1;
     95        if (notes != null) {
     96            for (Note note : notes) {
     97                noteList.add(note);
     98                if (note.getId() <= newNoteId) {
     99                    newNoteId = note.getId() - 1;
     100                }
    99101            }
    100102        }
Note: See TracChangeset for help on using the changeset viewer.