Hi all,
I created the Junits test case for one of my simple return method but while trying to run the junit test case it throws an Null Pointer Exception as below screen shot, please give some suggestion for resolving this error.
Solved! Go to Solution.
Views
Replies
Total Likes
Please see below blogpost, hope this helps
https://aemhelper.blogspot.com/2022/03/common-cause-of-nullpionterexception-or.html
Your Sling Model is failing to initialize. Check all injectors in Sling Model are configured in JSON.
Please see below blogpost, hope this helps
https://aemhelper.blogspot.com/2022/03/common-cause-of-nullpionterexception-or.html
Thanks @Umesh_Thakur it is really helpful.
Thank you, @Umesh_Thakur It is really helpful and working for me.
Views
Replies
Total Likes
I am glad to hear, it works for you.
If any piece of information shared by us, solves someone problem purpose solved for us.
Thank you for your feedback.
Umesh Thakur
Views
Likes
Replies
Views
Likes
Replies