Changeset 19311 in josm for trunk


Ignore:
Timestamp:
2025-02-06T23:14:50+01:00 (2 weeks ago)
Author:
stoecker
Message:

fix #24121, fix null access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SourceButton.java

    r14300 r19311  
    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
Note: See TracChangeset for help on using the changeset viewer.