Onpostexecute Causing Application To Crash
Below is my onPostExecute method. When my AsyncTask fires it does everything that it suppose to do but when it tries to execute my onPostExecute my application crashes and I get t
Solution 1:
Simply check file_URL :if(file_URL!=null && file_URL.equals("0"))
Solution 2:
Solution 3:
if(file_URL.equals("0")) is line 193, so this is where the NPE occurs. What's happening here is that file_URL itself is null, and you're running a method off a null item - hence the issue.
So to fix this, wrap it up:
if(file_URL != null){
// Your code
}
Post a Comment for "Onpostexecute Causing Application To Crash"