mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 20:59:00 +00:00
fix NPE ChatListFragment
This commit is contained in:
parent
5b854e8f5c
commit
0a141d0679
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue