In some cases the cache object is empty and it gives a warning.

So we need to do a !empty check.

I attached a patch for fix.

CommentFileSizeAuthor
fix_undefined_warning.patch656 bytescslevy

Comments

cslevy created an issue. See original summary.

dragan jancikin’s picture

This patch work for me.
Project version is: 2.1-alpha1
Drupal: 8.9.20

  • anoopjohn committed d59412f on 2.x authored by cslevy
    Issue #3229622 by cslevy, draganj: Notice: Trying to get property 'data...
anoopjohn’s picture

Thanks for reporting the issue and for submitting the patch. I have committed the patch to the 2.x branch.

anoopjohn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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