Catch java.lang.NullPointerException when retrieves list of data from api.