mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 10:45:13 +01:00
Fix case of adapter being null
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
47bc1e8bbc
commit
fb15d625ae
@ -901,7 +901,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
}
|
||||
|
||||
boolean shouldScroll = layoutManager.findFirstVisibleItemPosition() == 0 ||
|
||||
adapter.getItemCount() == 0;
|
||||
(adapter != null && adapter.getItemCount() == 0);
|
||||
|
||||
if (!shouldScroll && popupBubble != null) {
|
||||
if (!popupBubble.isShown()) {
|
||||
|
Loading…
Reference in New Issue
Block a user