Fix null pointer issue
This commit is contained in:
parent
7160756af2
commit
bb583ac927
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
outState.putString("messageDraft", message.getText().toString());
|
||||
if (message != null) {
|
||||
outState.putString("messageDraft", message.getText().toString());
|
||||
}
|
||||
super.onSaveInstanceState(outState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue