Issue Bug Closed

#79104AvatarViewHelper in History Module throws exception upon deleted BE user

Anja Leichsenring 12/29/16, 13:12 updated 10/02/18, 11:04

Description

While trying to render avatars for History entries, the BEuser responsible for the change is requested from database. In case it is not found, the queryBuilder returns false. There is no check for a valid BEuser record array to be passed to the Avatar::render() function, leading to:

Uncaught TYPO3 Exception
Argument 1 passed to TYPO3\CMS\Backend\Backend\Avatar\Avatar::render() must be of the type array, boolean given, called in .../typo3/cms/typo3/sysext/backend/Classes/ViewHelpers/AvatarViewHelper.php on line 88 

TypeError thrown in file
.../typo3/cms/typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php in line 51.

Reviews 1