here's a portion of my code:

```
public class Login  extends Activity {

private class LoginUser extends AsyncTask<String, String, Boolean> {
@Override
        protected void onPostExecute(Boolean returnResult) {
            DialogSelectAccount dsa=new DialogSelectAccount(getParent());
             dsa.show();

      }
   }
}

public class DialogSelectAccount extends Dialog implements android.view.View.OnClickListener  {

    public DialogSelectAccount(Activity a) {
        super(a);
    }
}

```

but when I run the app, it get a NPE error at the "super(a)" under the public DialogSelectAccount();

but when I changed my code to

```
public class Login  extends Activity {

private class LoginUser extends AsyncTask<String, String, Boolean> {
@Override
        protected void onPostExecute(Boolean returnResult) {
            test();

      }
   }

public void test(){
        DialogSelectAccount dsa=new DialogSelectAccount(this);
        dsa.show();
    }
}

```

it works. So what if I don't want to create a separate method like above and calls DialogSelectAccount directly inside the onPostExecute, what should I pass as the argument?

Thanks