This is a followup of #3082271: TypeError: Argument 1 passed to ::prepareItem() must be an instance of stdClass, bool given. In that ticket a bug was fixed where FileSystemBackend::getFile() could return FALSE when a file could not be serialized, where the function should only return a cache object or NULL.

I have now checked all calls to the ::getFile() methods and have identified two methods that do not handle the case where the return value is NULL. We should fix these so that they do not throw fatal errors in case the file being read is deleted or contains something else than a serialized cache object.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pfrenssen created an issue. See original summary.

  • pfrenssen committed 474f356 on 8.x-1.x
    Issue #3082307: Prevent errors when FileSystemBackend::getFile() returns...
pfrenssen’s picture

Status: Active » Needs review
FileSize
1.13 KB
pfrenssen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.