Ignore:
Timestamp:
2016-01-29T22:33:37+01:00 (3 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/HistoryBrowserModel.java

    r9673 r9677  
    231231
    232232    protected void initMemberListTableModels() {
    233         if (current.getType() != OsmPrimitiveType.RELATION || reference.getType() != OsmPrimitiveType.RELATION)
     233        if (current == null || current.getType() != OsmPrimitiveType.RELATION
     234         || reference == null || reference.getType() != OsmPrimitiveType.RELATION)
    234235            return;
    235236        TwoColumnDiff diff = new TwoColumnDiff(
Note: See TracChangeset for help on using the changeset viewer.