Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
r7033 r7070 56 56 } 57 57 58 public OsmDataSessionExporter() {59 }60 61 58 @Override 62 59 public Collection<Layer> getDependencies() { -
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r7033 r7070 28 28 import javax.xml.transform.stream.StreamResult; 29 29 30 import org.w3c.dom.Document;31 import org.w3c.dom.Element;32 import org.w3c.dom.Text;33 34 30 import org.openstreetmap.josm.Main; 35 31 import org.openstreetmap.josm.data.coor.EastNorth; … … 45 41 import org.openstreetmap.josm.tools.MultiMap; 46 42 import org.openstreetmap.josm.tools.Utils; 43 import org.w3c.dom.Document; 44 import org.w3c.dom.Element; 45 import org.w3c.dom.Text; 47 46 48 47 public class SessionWriter { … … 80 79 81 80 private final List<Layer> layers; 82 private final int active; 81 private final int active; 83 82 private final Map<Layer, SessionLayerExporter> exporters; 84 83 private final MultiMap<Layer, Layer> dependencies; … … 91 90 * @param layers The ordered list of layers to save 92 91 * @param active The index of active layer in {@code layers} (starts to 0). Ignored if set to -1 93 * @param exporters The exp rters to use to save layers92 * @param exporters The exporters to use to save layers 94 93 * @param zip {@code true} if a joz archive has to be created, {@code false otherwise} 95 94 * @since 6271 … … 208 207 } 209 208 Set<Layer> deps = dependencies.get(layer); 210 if ( !deps.isEmpty()) {209 if (deps != null && !deps.isEmpty()) { 211 210 List<Integer> depsInt = new ArrayList<>(); 212 211 for (Layer depLayer : deps) { … … 247 246 } 248 247 249 public void write 248 public void write(OutputStream out) throws IOException { 250 249 if (zip) { 251 250 zipOut = new ZipOutputStream(new BufferedOutputStream(out));
Note:
See TracChangeset
for help on using the changeset viewer.