Modify ↓
Opened 9 years ago
Closed 9 years ago
#11427 closed defect (fixed)
BingAerialTileSource - NullPointerException in Constructor
Reported by: | Owned by: | The111 | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | JMapViewer | Version: | |
Keywords: | NullPointerException | Cc: | wiktorn |
Description (last modified by )
SVN version 31122
TileSource bingAerial = new BingAerialTileSource(); [...] public class BingAerialTileSource extends AbstractTMSTileSource { /** * Constructs a new {@code BingAerialTileSource}. */ public BingAerialTileSource() { super(new TileSourceInfo("Bing", null, null)); // base_url = NULL!! } } public abstract class AbstractTMSTileSource extends AbstractTileSource { public AbstractTMSTileSource(TileSourceInfo info) { this.name = info.getName(); this.baseUrl = info.getUrl(); if(baseUrl.endsWith("/")) { // ***** baseUrl is NULL!! ********* baseUrl = baseUrl.substring(0,baseUrl.length()-1); } this.id = info.getUrl(); this.noTileHeaders = info.getNoTileHeaders(); } }
Attachments (1)
Change History (4)
comment:1 by , 9 years ago
Cc: | added |
---|
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
by , 9 years ago
Attachment: | 11427_Bing_NPE.patch added |
---|
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In [o31123]:
applied #11427 - BingAerialTileSource - NullPointerException in Constructor (patch by wiktorn)
Note:
See TracTickets
for help on using tickets.
Good point