Page breaks when i delete an asset | Community
Skip to main content
January 16, 2020
Question

Page breaks when i delete an asset

  • January 16, 2020
  • 0 replies
  • 1267 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.