Code

check for null spitem (fix for #1122875, patch by inkblotter)