nullptr checks for potential nullptr exceptions calls