Acesso à vista do fragmento A no fragmento B

Estou tentando acessar uma exibição de texto do fragmento A no fragmento B para alterar o texto, recebendo um ponteiro nulo. Eu tentei o seguinte.

public void setText(String text) { TextView t = (TextView) getView().findViewById(R.id.message_menu); t.setText(text); }

eu também tentei

 test = (TextView) getView().findViewById(R.id.message_menu);
 test.setText("bla bla");

Eu tentei inflar outra visão também

View myFragmentView = inflater.inflate(R.layout.fragment_login, container, false);
test = (TextView) test..findViewById(R.id.message_menu);

Tentei usar uma NewInstance com o seguinte código no fragmento B

test = (TextView) FragmentLogin.newInstance().getView().findViewById(R.id.TEXT_STATUS_ID);
test.setText("hello testing ");

E fragmento A:

 public static FragmentBottomMenu newInstance() {
    FragmentBottomMenu fragment = new FragmentBottomMenu();
    return fragment;
}

ainda recebendo uma exceção de ponteiro nulo.

Qualquer sugestão seria ótima. obrigado

questionAnswers(1)

yourAnswerToTheQuestion