Changeset 7658 in josm
- Timestamp:
- 2014-10-27T21:32:23+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java
r7656 r7658 109 109 monitor = NullProgressMonitor.INSTANCE; 110 110 } 111 DataSet ds = primitives.iterator().next().getDataSet(); 112 ds.beginUpdate(); 111 DataSet ds = null; 112 if (!primitives.isEmpty()) { 113 ds = primitives.iterator().next().getDataSet(); 114 } 115 if (ds != null) { 116 ds.beginUpdate(); 117 } 113 118 try { 114 119 monitor.beginTask("Postprocessing uploaded data ..."); … … 134 139 return processed; 135 140 } finally { 136 ds.endUpdate(); 141 if (ds != null) { 142 ds.endUpdate(); 143 } 137 144 monitor.finishTask(); 138 145 }
Note:
See TracChangeset
for help on using the changeset viewer.