Ignore:
Timestamp:
2013-02-19T22:38:52+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8444 - NPE when no WMS url is entered in WMS add dialog + various UI improvements in add WMS/TMS dialogs (OK button enabled status is dynamic, new Help button, name suggested for wms_endpoint)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r5617 r5731  
    1616import java.util.Set;
    1717import java.util.regex.Pattern;
     18
    1819import javax.xml.parsers.DocumentBuilder;
    1920import javax.xml.parsers.DocumentBuilderFactory;
    20 import javax.xml.parsers.ParserConfigurationException;
     21
    2122import org.openstreetmap.josm.data.Bounds;
    2223import org.openstreetmap.josm.data.imagery.ImageryInfo;
     
    6061
    6162    String buildRootUrl() {
     63        if (serviceUrl == null) {
     64            return null;
     65        }
    6266        StringBuilder a = new StringBuilder(serviceUrl.getProtocol());
    6367        a.append("://");
Note: See TracChangeset for help on using the changeset viewer.