- π¬π§United Kingdom longwave UK
Ran into this on an existing large site; this was a database integrity issue for me. Some nodes were somehow owned by deleted users, when rendering them in a search result I saw the same error.
> \Drupal\node\Entity\Node::load(71137)->getOwner(); = null
As getOwner() can return NULL (even though it is not documented as such) I think we should provide protection against this.
- last update
over 1 year ago 29,260 pass, 20 fail - π¬π§United Kingdom longwave UK
This also reminds me that all these historic theme settings should just be configured in the entity display.
- π¬π§United Kingdom catch
Seems OK to be more defensive here, there are other ways to find out the node owner has been deleted that aren't fatal errors for site visitors.
Committed/pushed to 11.x and cherry-picked back through to 9.5.x, thanks!
- Status changed to Fixed
over 1 year ago 10:55am 23 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.