A number of possible 'NULL-pointer crashes' avoided