I\'m creating an app that display contact list in a listview.The problem is I\'m getting the following error when I run my app and I\'m struggling to fix it:
Extract this line
List contactModelList = new ArrayList<>();
before the try block and instead of return null; use return contactModelList;
return null;
return contactModelList;
Looks like your parsing fails and you pass a null object to onPostExecute().
null
onPostExecute()