add missing NULL checks to get_coding_spec (closes #24854)
1 file changed