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

TYPO3 12: Call to a member function getModuleName() on null #36

Open
3l73 opened this issue Sep 25, 2024 · 0 comments
Open

TYPO3 12: Call to a member function getModuleName() on null #36

3l73 opened this issue Sep 25, 2024 · 0 comments

Comments

@3l73
Copy link

3l73 commented Sep 25, 2024

The class EventExecutionService try to access method getModuleName() on a null value returned by method getModule() by model Event.

Expected behaviour

No exception should be triggered.

To Reproduce

  1. Open the backend module 4AllPortal Connector
  2. Select an Event and click "Execute event"

Used versions:
TYPO3: v12.4.20
Extension version: 7f2542c (@dev-fix/downloaded-temp-filename)

Additional context

The exception is triggered in class EventExecutionService at line 535

'Processing ' . $event->getStatus() . ' event "' . $event->getModule()->getModuleName() . ':' . $event->getEventId() . '" - ' .

The model Event defines the return value of method getModule() as of type Module or null.

public function getModule(): ?Module

Since the return value of null is valid, this should take into account, when work with the result.

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

No branches or pull requests

1 participant