Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] NPE in Index Queue module when no site is selected #4215

Open
wants to merge 1 commit into
base: release-11.6.x
Choose a base branch
from

Conversation

adamkoppede
Copy link
Contributor

In multi site setups a null pointer exception is thrown when opening the Index Queue TYPO3 module without having a solr-enabled page selected in the page tree. The NPE is thrown in ::initializeAction() before the original handling of the "no site selected" case in ::indexAction().

Fixes: 3ea2713 ("[TASK:BP:11.6] Consider queue initialization status")

What this pr does

Brings back the existing "No site could be found." error message to the Index Queue TYPO3 module.

How to test

Open the Index Queue TYPO3 module in an PHP 8.2, TYPO3 v11.5.41, EXT:solr v11.6.0 installation, that contains at least two sites with solr enabled. Select the root page (imaginary page with uid=0) in the page tree.

In multi site setups a null pointer exception is thrown when opening the
Index Queue TYPO3 module without having a solr-enabled page selected in
the page tree. The NPE is thrown in `::initializeAction()` before the
original handling of the "no site selected" case in `::indexAction()`.

Fixes: 3ea2713 ("[TASK:BP:11.6] Consider queue initialization status")
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants