android jsonObject Null Pointer Exception [duplicate]
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 3 years ago . I am new to JSON. I need help. My android studio keeps on telling me that my jsonobject is NULL. I can parse and display my jsonarray into a listview. But when i click the page where i displayed it, my app crashes. Parser class BgTask extends AsyncTask<Void, Void, String> { String json_url; @Override protected void onPreExecute() { json_url = "http://10.0.2.2/result