Changeset 13222 in josm for trunk/src/org


Ignore:
Timestamp:
2017-12-18T02:36:13+01:00 (7 years ago)
Author:
Don-vip
Message:

see #15673 - fix NPE seen in unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r13221 r13222  
    616616            add(new JMenuItem(new LoadTileAction()));
    617617            add(new JMenuItem(new ShowTileInfoAction()));
    618             if (ExpertToggleAction.isExpert() && tileSource != null && tileSource.getBaseUrl().contains(".tile.openstreetmap.org/")) {
     618            if (ExpertToggleAction.isExpert() && tileSource != null && tileSource.getBaseUrl() != null
     619                    && tileSource.getBaseUrl().contains(".tile.openstreetmap.org/")) {
    619620                add(new JMenuItem(new GetOsmTileStatusAction()));
    620621                add(new JMenuItem(new MarkOsmTileDirtyAction()));
Note: See TracChangeset for help on using the changeset viewer.