Opened 4 years ago

Closed 4 years ago

#11427 closed defect (fixed)

BingAerialTileSource - NullPointerException in Constructor

Reported by: rfu@… Owned by: The111
Priority: normal Milestone:
Component: JMapViewer Version:
Keywords: NullPointerException Cc: wiktorn

Description (last modified by bastiK)

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) { = info.getName();
        this.baseUrl = info.getUrl(); 
        if(baseUrl.endsWith("/")) {         // ***** baseUrl is NULL!! *********
            baseUrl = baseUrl.substring(0,baseUrl.length()-1);
        } = info.getUrl();
        this.noTileHeaders = info.getNoTileHeaders();


Attachments (1)

11427_Bing_NPE.patch (779 bytes) - added by wiktorn 4 years ago.
Good point

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by bastiK

Cc: wiktorn added

comment:2 Changed 4 years ago by bastiK

Description: modified (diff)

Changed 4 years ago by wiktorn

Attachment: 11427_Bing_NPE.patch added

Good point

comment:3 Changed 4 years ago by bastiK

Resolution: fixed
Status: newclosed

In [o31123]:

applied ​#11427 - BingAerialTileSource - NullPointerException in Constructor (patch by wiktorn)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain The111.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.