Skip to content

Commit 4e00d13

Browse files
author
stoecker
committed
fix #24121, fix null access
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19311 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent 07e1dbd commit 4e00d13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/openstreetmap/josm/gui/bbox/SourceButton.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ protected void generatePopupMenu() {
8181
this.sourceButtonGroup.add(menuItem);
8282

8383
// attempt to initialize button group matching current state of slippyMapBBoxChooser
84-
buttonModel.setSelected(this.slippyMapBBoxChooser.getTileController().getTileSource().getId().equals(ts.getId()));
84+
String tsid = this.slippyMapBBoxChooser.getTileController().getTileSource().getId();
85+
buttonModel.setSelected(tsid != null && tsid.equals(ts.getId()));
8586
}
8687

8788
pm.addSeparator();

0 commit comments

Comments
 (0)