Changeset 14853 in josm for trunk


Ignore:
Timestamp:
2019-03-09T01:35:37+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #17435 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r14624 r14853  
    426426
    427427        // do not let the name grow if split / combine operations are called iteratively
    428         attrs.put("name", attrs.get("name").toString().replaceFirst(" #\\d+$", ""));
     428        Object name = attrs.get("name");
     429        if (name != null) {
     430            attrs.put("name", name.toString().replaceFirst(" #\\d+$", ""));
     431        }
    429432
    430433        clearTracks();
Note: See TracChangeset for help on using the changeset viewer.