Changeset 12030 in josm


Ignore:
Timestamp:
2017-04-30T21:55:15+02:00 (21 months ago)
Author:
michael2402
Message:

See #13604: Change error to a warning until we figure out what causes a layer not to be registered at that stage.

File:
1 edited

Legend:

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

    r11905 r12030  
    7272import org.openstreetmap.josm.tools.AudioPlayer;
    7373import org.openstreetmap.josm.tools.JosmRuntimeException;
     74import org.openstreetmap.josm.tools.Logging;
    7475import org.openstreetmap.josm.tools.Shortcut;
    7576import org.openstreetmap.josm.tools.Utils;
     
    446447            LayerPainter painter = registeredLayers.get(layer);
    447448            if (painter == null) {
    448                 throw new IllegalArgumentException("Cannot paint layer, it is not registered.");
     449                Logging.warn("Cannot paint layer, it is not registered: {0}", layer);
     450                return;
    449451            }
    450452            MapViewRectangle clipBounds = getState().getViewArea(g.getClipBounds());
Note: See TracChangeset for help on using the changeset viewer.