Page breaks when i delete an asset

kbhalla22

16-01-2020

Hi, when I try to delete an asset from a page that is published or (view as published). The page breaks and I get an exception. However, what i want to do is to display an error image thumbnail or something else over there(in the image component). Any idea how to achieve that?

 

this is the error that i am getting when i delete an asset : 

org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "adaptTo" of null (/apps/myproject/components/content/image/asset.js#11)

Accepted Solutions (0)

Answers (0)