Ignore:
Timestamp:
2018-06-15T20:42:46+02:00 (6 years ago)
Author:
Don-vip
Message:

see #11000 - fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java

    r13934 r13935  
    317317
    318318    protected DownloadParams getDownloadParams() {
    319         return new DownloadParams()
     319        DownloadParams result = new DownloadParams();
     320        if (args != null) {
     321            result = result
    320322                .withNewLayer(isLoadInNewLayer())
    321323                .withLayerName(args.get("layer_name"))
     
    323325                .withDownloadPolicy(get("download_policy", DownloadPolicy::of, () -> DownloadPolicy.NORMAL))
    324326                .withUploadPolicy(get("upload_policy", UploadPolicy::of, () -> UploadPolicy.NORMAL));
     327        }
     328        return result;
    325329    }
    326330
Note: See TracChangeset for help on using the changeset viewer.