Changeset 11306 in josm for trunk/src


Ignore:
Timestamp:
2016-11-25T20:20:15+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #14042 - NPE

File:
1 edited

Legend:

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

    r10413 r11306  
    202202        if (primitive != null) {
    203203            Changeset cs = primitive.getChangeset();
    204             update(cs, model.isLatest(primitive), primitive.getTimestamp(), primitive.getVersion());
     204            if (cs != null) {
     205                update(cs, model.isLatest(primitive), primitive.getTimestamp(), primitive.getVersion());
     206            }
    205207        }
    206208    }
     
    217219    /**
    218220     * Updates the content of this panel based on the changeset information given by {@code cs}.
    219      * @param cs the changeset information
     221     * @param cs the changeset information - must not be null
    220222     * @param isLatest whether this relates to a not yet commited changeset
    221223     * @param timestamp the timestamp
Note: See TracChangeset for help on using the changeset viewer.