Ignore:
Timestamp:
2014-03-28T19:53:24+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #9870 - exception when trying to view history of new nodes from their parent way history dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java

    r6883 r6936  
    276276
    277277        public void updateEnabledState() {
    278             setEnabled(primitiveId != null && primitiveId.getUniqueId() > 0);
     278            setEnabled(primitiveId != null && !primitiveId.isNew());
    279279        }
    280280    }
     
    314314            if(row <= 0) return;
    315315            PrimitiveId pid = primitiveIdAtRow(table.getModel(), row);
    316             if (pid == null)
     316            if (pid == null || pid.isNew())
    317317                return;
    318318            showHistoryAction.setPrimitiveId(pid);
Note: See TracChangeset for help on using the changeset viewer.