Changeset 13415 in josm


Ignore:
Timestamp:
2018-02-12T16:56:28+01:00 (8 days ago)
Author:
Don-vip
Message:

fix #15911 - safe handling of WMS exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java

    r13206 r13415  
    8787                        tr("WMS Error"), JOptionPane.ERROR_MESSAGE);
    8888            } catch (WMSImagery.WMSGetCapabilitiesException ex3) {
    89                 String incomingData = ex3.getIncomingData().trim();
     89                String incomingData = ex3.getIncomingData() != null ? ex3.getIncomingData().trim() : "";
    9090                String title = tr("WMS Error");
    9191                StringBuilder message = new StringBuilder(tr("Could not parse WMS layer list."));
Note: See TracChangeset for help on using the changeset viewer.