Modify

Opened 9 years ago

Closed 9 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) {
        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)

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

Download all attachments as: .zip

Change History (4)

comment:1 by bastiK, 9 years ago

Cc: wiktorn added

comment:2 by bastiK, 9 years ago

Description: modified (diff)

by wiktorn, 9 years ago

Attachment: 11427_Bing_NPE.patch added

Good point

comment:3 by bastiK, 9 years ago

Resolution: fixed
Status: newclosed

In [o31123]:

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain The111.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.