TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #88879
Issue Bug Closed

#88879ContentObjectRenderer->imageLinkWrap could fail if ResourceFactory returns NULL instead of File

Kevin Ditscheid 08/01/19, 13:58 updated 04/01/20, 21:14

Open in Forge Comment in Forge

Description

This line https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#L1319 could fail, if the ResourceFactory returned NULL earlier in execution at https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#L1290

It should probably be hardened, so this possibility of a NULL value is respected instead of the code breaking.

Reviews 2

  • 9.5 63904[BUGFIX] Avoid error in imageLinkWrap for non-existing files Resolves this issue Merged Frank Nägler CR +2 V +2 → main Easy +1 −1 03/27/20, 11:58
  • main 63914[BUGFIX] Avoid error in imageLinkWrap for non-existing files Resolves this issue Merged Susi Moog CR +2 V +2 → 9.5 Easy +1 −1 03/27/20, 11:33
Author
Kevin Ditscheid
Priority
Should have
Category
Frontend
TYPO3 version
10
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback