diff --git a/collects/mred/private/mritem.rkt b/collects/mred/private/mritem.rkt index a948d461..3dc522cd 100644 --- a/collects/mred/private/mritem.rkt +++ b/collects/mred/private/mritem.rkt @@ -333,11 +333,12 @@ (lambda () (let ([cwho '(constructor radio-box)]) (check-container-ready cwho parent) - (unless (< selection (length choices)) - (raise-mismatch-error (who->name cwho) - (format "initial selection is too large, given only ~a choices: " - (length choices)) - selection)))) + (when selection + (unless (< selection (length choices)) + (raise-mismatch-error (who->name cwho) + (format "initial selection is too large, given only ~a choices: " + (length choices)) + selection))))) label parent callback #f))) (when (or (not selection) (positive? selection)) (set-selection selection)))))