Changeset 9753 in josm for trunk/src/org


Ignore:
Timestamp:
2016-02-07T18:08:55+01:00 (9 years ago)
Author:
Don-vip
Message:

add unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/session/GenericSessionExporter.java

    r9746 r9753  
    208208        } else {
    209209            try {
    210                 file.appendChild(support.createTextNode(layer.getAssociatedFile().toURI().toURL().toString()));
     210                File f = layer.getAssociatedFile();
     211                if (f != null) {
     212                    file.appendChild(support.createTextNode(f.toURI().toURL().toString()));
     213                }
    211214            } catch (MalformedURLException e) {
    212215                throw new IOException(e);
Note: See TracChangeset for help on using the changeset viewer.