Changeset 15744 in josm


Ignore:
Timestamp:
2020-01-21T21:05:33+01:00 (4 years ago)
Author:
Don-vip
Message:

see #14921 - fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

    r15739 r15744  
    9797    private static ImageryInfo convertImagery(ImageryInfo info) {
    9898        try {
    99             if (info.getUrl().contains("{time}")) {
     99            if (info.getUrl() != null && info.getUrl().contains("{time}")) {
    100100                final String instant = Year.now().atDay(1).atStartOfDay(ZoneOffset.UTC).toInstant().toString();
    101101                final String example = String.join("/", instant, instant);
Note: See TracChangeset for help on using the changeset viewer.