Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | // is the first radiobutton, which has value of "None" |
97 | 97 | function validate_mandatory_radiobutton(none_button_id, info_id) { |
98 | 98 | none_button = document.getElementById(none_button_id); |
99 | | - if (none_button.checked) { |
| 99 | + if (none_button && none_button.checked) { |
100 | 100 | infobox = document.getElementById(info_id); |
101 | 101 | infobox.innerHTML = "$blank_error_str"; |
102 | 102 | return false; |