Project

General

Profile

Actions

Bug #79104

closed

AvatarViewHelper in History Module throws exception upon deleted BE user

Added by Anja Leichsenring almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2016-12-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.
Actions

Also available in: Atom PDF