Changeset 12726 in josm for trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
- Timestamp:
- 2017-09-04T23:45:49+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
r12718 r12726 28 28 /** 29 29 * Constructs a new {@code ConflictResolveCommand} in the context of the current edit layer, if any. 30 * @deprecated to be removed end of 2017. Use {@link #ConflictResolveCommand(DataSet)} instead 30 31 */ 32 @Deprecated 31 33 public ConflictResolveCommand() { 32 // Do nothing34 this(Main.main.getEditDataSet()); 33 35 } 34 36 … … 81 83 82 84 DataSet ds = getAffectedDataSet(); 83 if (!Main.main.containsDataSet(ds)) { 84 Logging.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 85 this.toString(), 86 ds.getName() 87 )); 88 return; 85 if (Main.main != null) { 86 if (!Main.main.containsDataSet(ds)) { 87 Logging.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 88 this.toString(), 89 ds.getName() 90 )); 91 return; 92 } 93 94 Main.main.setEditDataSet(ds); 89 95 } 90 91 Main.main.setEditDataSet(ds);92 96 reconstituteConflicts(); 93 97 }
Note:
See TracChangeset
for help on using the changeset viewer.