Skip to content
Snippets Groups Projects
Commit 67f5e90a authored by Susanne Moog's avatar Susanne Moog Committed by Frank Nägler
Browse files

[BUGFIX] Avoid error in imageLinkWrap for non-existing files

ImageLinkWrap may not get a valid file object but will still try to
access methods on it which will fail. This patch implements a null check
resulting in simply not linking the image if the given file resource is
invalid.

Resolves: #88879
Releases: master, 9.5
Change-Id: I723596aa3b0a274a3565492b3d67a30b9d52389f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63914


Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.org>
parent 1965d49b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment