[BUGFIX] Fix crashes for current and getInfo on empty storages
For empty storages, we need to avoid accessing inexistent array elements. Resolves: #97417 Relates: #97554 Releases: main, 11.5 Change-Id: Ieee36b4c0ede9726ce936030f631a3322e3813a9 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74765 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/extbase/Classes/Persistence/Generic/LazyObjectStorage.php 1 addition, 1 deletion...extbase/Classes/Persistence/Generic/LazyObjectStorage.php
- typo3/sysext/extbase/Classes/Persistence/ObjectStorage.php 5 additions, 3 deletionstypo3/sysext/extbase/Classes/Persistence/ObjectStorage.php
- typo3/sysext/extbase/Tests/Unit/Persistence/ObjectStorageTest.php 24 additions, 0 deletions...sext/extbase/Tests/Unit/Persistence/ObjectStorageTest.php
Please register or sign in to comment