A --> B --> C --> back to B

Where A must send an extra to B and B has a button (back button) to C. When pressing the back button from C, it must go back to B, that still has the extra from A. Basically, B and C go back and forth, where both stay the same when left, without data being destroyed.

However, in my case, it goes back to A and if I use `finish()` or `startActivity()` the app crashes, saying it's NullPointerException. I figured this is because B hasn't received any extra from A, because it was C that was calling B. 

Should I pass the A's extra from B to C and back to B again? What should one do?

A

```
String indicate = textView.getText().toString();
Intent t = new Intent(getApplicationContext(), Details.t.putExtra("indicate", indicate);
startActivity(t);
finish();

```

B (onCreate())

```
Intent g = getIntent();
String indica = g.getExtras().getString("indicate");
TextView diseaseLabel = (TextView) findViewById(R.id.statusTxt);
diseaseLabel.setText(indica);

```

C

```
public boolean onOptionsItemSelected(MenuItem item) {
    //finish();
    //Intent i = new Intent(this.context, B.class);
    //startActivity(i);
    return super.onOptionsItemSelected(item);

}

```