I'm using Retrofit to parse a JSON returned by the API in this link using POJO Model Classes as mentioned in Retrofit Documentation I use asynchronous method to successfully get the tags inside "entities". However, when I try to get the "profile" tag from the "Media", I get a Null pointer exception and the App crashes.
I tried printing the "Profile" data from Media tag to the LogCat, the App crashes but I can see the URL string printed in LogCat along with Null Pointer Exception for the same method.
This is confusing as my method returns the mapped Data from API but, still shows Null Pointer Exception.