I definied my own method to display Toast and I want to call it from another Activity. When I do that, my app crash. Do you have some `Attempt to invoke virtual method.... on a null object reference`. 

The Toast method:

```
 public void showToastDown(Context context, String message) {
    context = getApplicationContext();

    inflater = getLayoutInflater();
    View v = inflater.inflate(R.layout.toast_down, (ViewGroup) findViewById(R.id.toast_down_root));

    TextView tvToastDown = v.findViewById(R.id.tvToastDown);
    tvToastDown.setText(message);
    Toast toast = new Toast(context);
    toast.setGravity(Gravity.BOTTOM|Gravity.FILL_HORIZONTAL, 0,0);
    toast.setDuration(Toast.LENGTH_SHORT);
    toast.setView(v);
    toast.show();

}

```

and the code from 2nd activity: 

```
  switch (item.getItemId()){
    case  R.id.btnAddActionBar:

        MainActivity mainActivity= new MainActivity();
        mainActivity.showToastDown(this, "TEXT");
        break;
}
    return super.onOptionsItemSelected(item);
}

```