Changeset 8709 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2015-09-01T20:07:24+02:00 (9 years ago)
Author:
simon04
Message:

see #11827 - fix NPE introduced in r8708

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r8708 r8709  
    480480    @Override
    481481    public Map<String, String> getKeys() {
    482         Map<String, String> result = new HashMap<>(Utils.hashMapInitialCapacity(keys.length / 2));
     482        final Map<String, String> result = new HashMap<>(
     483                Utils.hashMapInitialCapacity(this.keys == null ? 0 : this.keys.length / 2));
    483484        String[] keys = this.keys;
    484485        if (keys != null) {
Note: See TracChangeset for help on using the changeset viewer.