@Override
public void onResponse(String response, int id) {
try {
JSONObject pollresult = new JSONObject(response);
List<OrderInfo> info = new Gson().fromJson(pollresult.getString("data"), new TypeToken<ArrayList<OrderInfo>>() {
}.getType());
orderId = info.get(0).getOrderID();
} catch (JSONException e) {
e.printStackTrace();
}
}
info.get(0)返回null,我得到NullPointerException