Bug #71951

f:debug() fails when lazy loading properties result in NULL

Added by Sebastian Michaelsen about 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
Start date:
2015-11-29
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

DebuggerUtility::renderObject() recognizes LazyLoadingProxy s and resolves them. But then it just assumes the value is still an object, but the lazy loading resolution may also result in NULL. This results in the following error:

http://shots.michaelsen.io/Mmlg

The lazy loading resolution in DebuggerUtility::renderObject() should look like this:

        if ($object instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
            $object = $object->_loadRealInstance();
            if (is_null($object)) {
                return gettype($object);
            }
        }

Associated revisions

Revision 67ba027d (diff)
Added by Markus Klein about 4 years ago

[BUGFIX] DebuggerUtility: Treat null results of lazy objects correctly

Resolves: #71951
Releases: master, 6.2
Change-Id: I590f1915fad84e09a6e45988d1adf17f61598c46
Reviewed-on: https://review.typo3.org/45100
Reviewed-by: Sebastian Michaelsen <>
Tested-by: Sebastian Michaelsen <>
Reviewed-by: Morton Jonuschat <>
Tested-by: Morton Jonuschat <>

Revision 4491c32f (diff)
Added by Morton Jonuschat about 4 years ago

[BUGFIX] DebuggerUtility: Treat null results of lazy objects correctly

Resolves: #71951
Releases: master, 6.2
Change-Id: I590f1915fad84e09a6e45988d1adf17f61598c46
Reviewed-on: https://review.typo3.org/45101
Reviewed-by: Morton Jonuschat <>
Tested-by: Morton Jonuschat <>

History

#1 Updated by Gerrit Code Review about 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45100

#2 Updated by Markus Klein about 4 years ago

  • Assignee set to Markus Klein
  • Target version set to 7.6.1
  • Complexity set to no-brainer

#3 Updated by Gerrit Code Review about 4 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45101

#4 Updated by Markus Klein about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#5 Updated by Riccardo De Contardi about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF