Solved
Image Metadata causing 500 error
I am trying to implement the image metadata inside the module with the following code.
<sly data-sly-use.myImg="${properties.laptopReference}/jcr:content/metadata">
<img src="${properties.laptopReference}" class="cover lazyloaded" alt="${myImg.valueMap['dc:title']}">
</sly>It is working, but if the image is not there it is giving 500 page error.
Any idea to resolve this error?