A pointer to a local variable here is not a good idea. I will change it such that nullptr can be accepted.