Changeset 2492 in josm


Ignore:
Timestamp:
2009-11-21T17:50:48+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3996: Exception when deleting layer

File:
1 edited

Legend:

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

    r2490 r2492  
    666666        public synchronized void setSelectedRelations(List<Relation> sel) {
    667667            selectionModel.clearSelection();
    668             if (sel == null || sel.isEmpty())
     668            if (sel == null || sel.isEmpty() || relations == null)
    669669                return;
    670670            for (Relation r: sel) {
Note: See TracChangeset for help on using the changeset viewer.