Skip to content

Commit

Permalink
fix #24121, fix null access
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19311 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Feb 6, 2025
1 parent 07e1dbd commit 4e00d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/openstreetmap/josm/gui/bbox/SourceButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ protected void generatePopupMenu() {
this.sourceButtonGroup.add(menuItem);

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

pm.addSeparator();
Expand Down

0 comments on commit 4e00d13

Please sign in to comment.