今日、私の G. Analytics アカウントは、このコード行でエラーを報告します
private class GetSubscriptionListTask extends AsyncTask<Void, Void, Void> {
boolean onlyUnread=true;
public GetSubscriptionListTask(boolean onlyUnread) {
super();
this.onlyUnread=onlyUnread;
}
ProgressDialog progress;
@Override
protected void onPreExecute() {
//Show progress Dialog here
super.onPreExecute();
// create ProgressDialog here ...
progress = new ProgressDialog(getActivity()); // <-- That's the line
progress.setMessage("Downloading Subscriptions");
// set other progressbar attributes
progress.setCancelable (false);
progress.setIndeterminate (true);
progress.show();
}
}
これがラインです
progress = new ProgressDialog(getActivity()); // <-- That's the line
これはエラーレポートです
NullPointerException (@SubscriptionsListFragment$GetSubscriptionListTask:onPreExecute:415) {main}
どういう意味ですか?nullexception は、ProgressDialog または getActivity()? に関するものです。
*UPDATE* * このエラーは、100 以上のセッションで 1 回だけ発生します。