Ignore:
Timestamp:
2013-09-22T18:36:07+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - various bugfixes / violation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java

    r6244 r6246  
    161161            boolean merge = Main.pref.getBoolean("download.gps.mergeWithLocal", false);
    162162            Layer active = Main.map.mapView.getActiveLayer();
    163             if (active != null && active instanceof GpxLayer && (merge || ((GpxLayer)active).data.fromServer))
     163            if (active instanceof GpxLayer && (merge || ((GpxLayer)active).data.fromServer))
    164164                return (GpxLayer) active;
    165165            for (GpxLayer l : Main.map.mapView.getLayersOfType(GpxLayer.class)) {
Note: See TracChangeset for help on using the changeset viewer.