Commit b192ce47 authored by Grigory Fedorov's avatar Grigory Fedorov

Fix crash when "Active chats on top" is disabled #400

parent cb05547c
...@@ -297,7 +297,7 @@ public class ContactListAdapter extends GroupedContactAdapter implements Runnabl ...@@ -297,7 +297,7 @@ public class ContactListAdapter extends GroupedContactAdapter implements Runnabl
} }
} }
hasActiveChats = activeChats.getTotal() > 0; hasActiveChats = activeChats != null && activeChats.getTotal() > 0;
// Remove empty groups, sort and apply structure. // Remove empty groups, sort and apply structure.
baseEntities.clear(); baseEntities.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment