Changeset 9986 in josm


Ignore:
Timestamp:
2016-03-14T01:09:36+01:00 (4 years ago)
Author:
Don-vip
Message:

fix potential NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

    r9528 r9986  
    262262                    recoverFromGoneOnServer(e, getProgressMonitor());
    263263                } catch (ChangesetClosedException e) {
    264                     processedPrimitives.addAll(writer.getProcessedPrimitives()); // OsmPrimitive in => OsmPrimitive out
     264                    if (writer != null) {
     265                        processedPrimitives.addAll(writer.getProcessedPrimitives()); // OsmPrimitive in => OsmPrimitive out
     266                    }
    265267                    changeset.setOpen(false);
    266268                    switch(e.getSource()) {
Note: See TracChangeset for help on using the changeset viewer.