fix npe
This commit is contained in:
parent
356d1e146e
commit
53a4c6cbcb
|
@ -311,7 +311,7 @@ public class ConversationFragment extends XmppFragment
|
||||||
};
|
};
|
||||||
|
|
||||||
private void loadMoreMessages(boolean paginateBackward, boolean paginationForward, AbsListView view) {
|
private void loadMoreMessages(boolean paginateBackward, boolean paginationForward, AbsListView view) {
|
||||||
if (paginateBackward && !conversation.messagesLoaded.get()) {
|
if (paginateBackward && (conversation != null && !conversation.messagesLoaded.get())) {
|
||||||
paginateBackward = false;
|
paginateBackward = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue