Better Errors: Call to a member function getContext() on null #3182
Labels
7.3
8.3
Accessibility
Bug
Label to mark the change as bugfix
DX
This issue, once solved, might improve the Developer Experience for Neos Integrators.
Description
Steps to Reproduce
Expected behavior
Somebody tells you that there is not much to manage in neos but the backend works (the other modules), or you get a exception which states exacly on first glance what is actually wrong.
Actual behavior
You get a "nice" error:
Call to a member function getContext() on null
[What actually happened]
The BackendController calls at some point inside
findNodeToEdit
$siteNode->getContext() ... on null. $siteNode was retrieved by the internal methodgetSiteNodeForLoggedInUser
which cant (for apparent reasons) find out the site node.This results in a rather harsh error and should be avoided to calm the user ;)
Affected Versions
Neos.UI:
since at least 7.3 but sure before ... tested with 8.0
The text was updated successfully, but these errors were encountered: