fix possible npe
This commit is contained in:
parent
82d21d51bb
commit
414b0c7978
|
@ -1388,7 +1388,7 @@ public class ConversationFragment extends XmppFragment
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setHasOptionsMenu(true);
|
setHasOptionsMenu(true);
|
||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null && conversation != null) {
|
||||||
conversation.jumpToLatest();
|
conversation.jumpToLatest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue