missing null check on cancel