Pimcore version
2025.3
Steps to reproduce
Not sure how to reproduce it, but found the following entries within the error log. It happened during the deletion of data objects.
Uncaught PHP Exception Error: "Call to a member function __isBasedOnLatestData() on null" at CoreCacheHandler.php line 464
Actual Behavior
When deleting a lot of data objects the mentioned error occured from time to time.
Uncaught PHP Exception Error: "Call to a member function __isBasedOnLatestData() on null" at CoreCacheHandler.php line 464.
Expected Behavior
No error in CoreCacheHandler#464.
The Service::getElementById call in line 462 could return null, therefore $data should probably be checked on null (or something like that) before accessing it.