Changeset 11347 in josm


Ignore:
Timestamp:
2016-11-29T22:26:59+01:00 (3 years ago)
Author:
wiktorn
Message:

Fix mis-reporting unsupported projections

String.split() on empty string generates one element array with empty
element. This would then foul, that Imagery has some projections
defined.

Closes: #14066

File:
1 edited

Legend:

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

    r11257 r11347  
    400400            }
    401401        }
    402         if (e.projections != null) {
     402        if (e.projections != null && !e.projections.isEmpty()) {
     403            // split generates null element on empty string which gives one element Array[null]
    403404            serverProjections = Arrays.asList(e.projections.split(","));
    404405        }
Note: See TracChangeset for help on using the changeset viewer.