diff --git src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
index 027b550..e3dcd36 100644
|
|
|
public abstract class AbstractTMSTileSource extends AbstractTileSource {
|
| 18 | 18 | public AbstractTMSTileSource(TileSourceInfo info) { |
| 19 | 19 | this.name = info.getName(); |
| 20 | 20 | this.baseUrl = info.getUrl(); |
| 21 | | if(baseUrl.endsWith("/")) { |
| | 21 | if(baseUrl != null && baseUrl.endsWith("/")) { |
| 22 | 22 | baseUrl = baseUrl.substring(0,baseUrl.length()-1); |
| 23 | 23 | } |
| 24 | 24 | this.id = info.getUrl(); |