Fix a svace for checking NULL