Changeset 3974 in josm


Ignore:
Timestamp:
2011-03-10T12:03:24+01:00 (14 years ago)
Author:
bastiK
Message:

see #6088 - ImageryInfo.url is null (added additional check)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r3934 r3974  
    66
    77import org.openstreetmap.josm.io.OsmApi;
     8import org.openstreetmap.josm.tools.CheckParameterUtil;
    89
    910/**
     
    3132
    3233    String name;
    33     String url = null;
     34    private String url = null;
    3435    String cookies = null;
    3536    public final String eulaAcceptanceRequired;
     
    165166
    166167    public void setUrl(String url) {
    167 
     168        CheckParameterUtil.ensureParameterNotNull(url);
     169       
    168170        for (ImageryType type : ImageryType.values()) {
    169171            if (url.startsWith(type.getUrlString() + ":")) {
Note: See TracChangeset for help on using the changeset viewer.