check for null location