shivam1608/JMailTM

Add null checks on all the field retrievals to avoid NullPointerException

Closed this issue · 1 comments

Whenever we retrieve a value from the json field, we use .toString() which could throw NullPointerException. That field may be allowed to have null but since we have .toString() we would end up with NPE. This PR aims at avoiding such NPE. Its a better alternative to null check.
PFB the PR raised for the same.
#7

Done in #7
Thanks for the contribution @aarahmanqa