1. 程式人生 > >多執行緒空指標異常 Exception in thread "AsyncTask2" Exception in thread "AsyncTask1" java.lang.NullPointerExce

多執行緒空指標異常 Exception in thread "AsyncTask2" Exception in thread "AsyncTask1" java.lang.NullPointerExce

寫了一個多執行緒方法,呼叫一個單執行緒不報錯的方法,一直在拋Exception in thread "AsyncTask2" Exception in thread "AsyncTask1" java.lang.NullPointerException

後來在呼叫外面套了try catch解決