Check for null reference pointer