nullptr is a valid input (causes error) for some functions