well, this line is only changing ``$this->getClient()->getRequest()->getUri()`` to ``$this->getCurrentUrl()``, which performs the same action but with additional checks for ``null`` to avoid fatal errors