Call to member function error in StorageBundle

Description

Reproduce

  • Use the gregware "image" Twig function to display a storage object

  • See screenshot for error

  • The bug is not consistent: sometimes the error occurs, sometimes not. The storage object does not seem to be different in both states, maybe the cache state is

  • I have seen the error on app_dev only, but I am not sure if it is only in dev mode

  • I have seen the error in 0.5 only, I am not sure if 0.4 is affected as well

Technical tasks

None

Deployment actions

None

Assignee

Unassigned

External issue ID

None

Client

None

Min. hours

None

Dev hour estimate

None

Fix versions

Affects versions

Configure