How to identify which of the inject is failing the sling model to instantiate??
if suppose i have 5 inject annotations in my sling model and 1 of which its not able to inject. How to identify that particular 1 inject amoung 5.
Thanks
Views
Replies
Total Likes
Yo have to debug the java class and chek wich of the attributes with the @Inject notation are null.
Views
Replies
Total Likes
You need to debug the java class and check the logs to identify were sling model instantiation is failing.
To be safer side you can use optional attribute. Please follow below link.
Thanks,
Manjunath DJ
Views
Replies
Total Likes