JSON-LD crashes on image without file

Description

Steps to reproduce

  • Set "File" in content type "Image" as not required

  • Add an Image, without uploading a file

  • Attach the image to an article

  • View the article on the website

  • Result: 500 error

Error message

Fatal error: Call to a member function getIdentifier() on null in /home/integrated/vendor/integrated/content-bundle/JsonLD/UrlGenerator.php on line 66

Technical tasks

None

Deployment actions

None

Status

Assignee

Unassigned

External issue ID

None

Client

Integrated Marijn

Min. hours

None

Dev hour estimate

None

Fix versions

Configure