adding null check to register player service