fix NPE ChatListFragment

This commit is contained in:
Negue 2015-12-21 18:50:26 +01:00
parent 5b854e8f5c
commit 0a141d0679

View file

@ -130,7 +130,9 @@ public class ChatListFragment extends Fragment implements SwipeRefreshLayout.OnR
ChatRecyclerViewAdapter tavernAdapter = new ChatRecyclerViewAdapter(chatMessages, ctx, userId, groupId, isTavern);
mRecyclerView.setAdapter(tavernAdapter);
if(mRecyclerView != null) {
mRecyclerView.setAdapter(tavernAdapter);
}
swipeRefreshLayout.setRefreshing(false);
}