This bug happened when I ran the CLI command typo3 cleanup:missingrelations.
Uncaught TYPO3 Exception Call to a member function getQueryParams() on null
thrown in file /var/www/html/vendor/georgringer/news/Classes/Hooks/Labels.php
in line 33
Environment
TYPO3 version(s): 12.4.7
news version: 11.2.0
Is your TYPO3 installation set up with Composer (Composer Mode): yes
Bug Report
This bug happened when I ran the CLI command
typo3 cleanup:missingrelations
.Environment