Changeset 9680 in josm for trunk/src


Ignore:
Timestamp:
2016-01-29T22:52:01+01:00 (4 years ago)
Author:
Don-vip
Message:

fix NPE seen in unit tests

File:
1 edited

Legend:

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

    r9526 r9680  
    200200    public void update(Observable o, Object arg) {
    201201        HistoryOsmPrimitive primitive = getPrimitive();
    202         Changeset cs = primitive.getChangeset();
    203         update(cs, model.isLatest(primitive), primitive.getTimestamp(), primitive.getVersion());
     202        if (primitive != null) {
     203            Changeset cs = primitive.getChangeset();
     204            update(cs, model.isLatest(primitive), primitive.getTimestamp(), primitive.getVersion());
     205        }
    204206    }
    205207
Note: See TracChangeset for help on using the changeset viewer.