Changeset 5810 in josm for trunk


Ignore:
Timestamp:
2013-03-29T12:19:22+01:00 (7 years ago)
Author:
bastiK
Message:

fix initialization NPE (for sessions)

File:
1 edited

Legend:

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

    r5715 r5810  
    163163        attribution.initialize(this.info);
    164164
    165         if(info.getUrl() != null) {
    166             startGrabberThreads();
    167         }
    168 
    169165        Main.pref.addPreferenceChangeListener(this);
    170166    }
     
    173169    public void hookUpMapView() {
    174170        if (info.getUrl() != null) {
     171            startGrabberThreads();
     172
    175173            for (WMSLayer layer: Main.map.mapView.getLayersOfType(WMSLayer.class)) {
    176174                if (layer.getInfo().getUrl().equals(info.getUrl())) {
Note: See TracChangeset for help on using the changeset viewer.