Changeset 9673 in josm


Ignore:
Timestamp:
2016-01-29T21:18:42+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/HistoryBrowserModel.java

    r9454 r9673  
    220220     */
    221221    protected void initNodeListTableModels() {
    222         if (current.getType() != OsmPrimitiveType.WAY || reference.getType() != OsmPrimitiveType.WAY)
     222        if (current == null || current.getType() != OsmPrimitiveType.WAY
     223         || reference == null || reference.getType() != OsmPrimitiveType.WAY)
    223224            return;
    224225        TwoColumnDiff diff = new TwoColumnDiff(
Note: See TracChangeset for help on using the changeset viewer.