Changeset 36381 in osm


Ignore:
Timestamp:
2025-02-04T16:14:15+01:00 (5 days ago)
Author:
stoecker
Message:

JMapViewer 2.24, see #24116, prevent error when key retrival returns null

Location:
applications/viewer/jmapviewer
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer

    • Property ReleaseVersion changed from 2.23 to 2.24
  • applications/viewer/jmapviewer/pom.xml

    r36373 r36381  
    66    <groupId>org.openstreetmap.jmapviewer</groupId>
    77    <artifactId>jmapviewer</artifactId>
    8     <version>2.24-SNAPSHOT</version>
     8    <version>2.25-SNAPSHOT</version>
    99
    1010    <name>JMapViewer</name>
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java

    r36372 r36381  
    159159        if (API_KEY.equals(key)) { // If the API key has not been customized, we try to retrieve the API key
    160160            try {
    161                 key = FeatureAdapter.retrieveApiKey(this.getId());
     161                String rkey = FeatureAdapter.retrieveApiKey(this.getId());
     162                if (rkey != null)
     163                    key = rkey;
    162164            } catch (IOException ioException) {
    163165                FeatureAdapter.getLogger(this.getClass()).log(Level.WARNING, "Failed to retrieve api key", ioException);
Note: See TracChangeset for help on using the changeset viewer.