Skip to content

BUG: Avoid crash during UI buildup if a ButtonGroup has no checked button

Created by: michaelschwier

I experienced Slicer crashing when loading a module with a <string-enumeration> which had no <default> element. Reason was that during UI buildup the pointer to the checked button in the ButtonGroup was fetched to get the text of the checked button. However, in this case the pointer to the button was NULL. Returning an empty string in this case seems to solve the issue.

Merge request reports