Changeset 8910 in josm for trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
- Timestamp:
- 2015-10-19T20:25:49+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r8855 r8910 89 89 import org.openstreetmap.josm.gui.util.GuiHelper; 90 90 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 91 import org.openstreetmap.josm.tools.CheckParameterUtil; 91 92 import org.openstreetmap.josm.tools.FilteredCollection; 92 93 import org.openstreetmap.josm.tools.GBC; … … 246 247 */ 247 248 public static Color getBackgroundColor() { 248 return Main.pref .getColor(marktr("background"), Color.BLACK);249 return Main.pref != null ? Main.pref.getColor(marktr("background"), Color.BLACK) : Color.BLACK; 249 250 } 250 251 … … 254 255 */ 255 256 public static Color getOutsideColor() { 256 return Main.pref .getColor(marktr("outside downloaded area"), Color.YELLOW);257 return Main.pref != null ? Main.pref.getColor(marktr("outside downloaded area"), Color.YELLOW) : Color.YELLOW; 257 258 } 258 259 … … 281 282 public OsmDataLayer(final DataSet data, final String name, final File associatedFile) { 282 283 super(name); 284 CheckParameterUtil.ensureParameterNotNull(data, "data"); 283 285 this.data = data; 284 286 this.setAssociatedFile(associatedFile);
Note:
See TracChangeset
for help on using the changeset viewer.