If the pointer is initialized to non-null then set the state appropriately.