mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-03 10:31:07 +01:00
Merge pull request #1598 from nextcloud/bugfix/1596/fixNpeUnreadBubble
catch NPE for popup bubble
This commit is contained in:
commit
1342bd5df3
@ -626,6 +626,7 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void checkToShowUnreadBubble() {
|
private void checkToShowUnreadBubble() {
|
||||||
|
try{
|
||||||
int lastVisibleItem = layoutManager.findLastCompletelyVisibleItemPosition();
|
int lastVisibleItem = layoutManager.findLastCompletelyVisibleItemPosition();
|
||||||
for (AbstractFlexibleItem flexItem : callItems) {
|
for (AbstractFlexibleItem flexItem : callItems) {
|
||||||
Conversation conversationItem = ((ConversationItem) flexItem).getModel();
|
Conversation conversationItem = ((ConversationItem) flexItem).getModel();
|
||||||
@ -638,6 +639,10 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
newMentionPopupBubble.hide();
|
newMentionPopupBubble.hide();
|
||||||
|
} catch (NullPointerException e){
|
||||||
|
Log.d(TAG, "A NPE was caught when trying to show the unread popup bubble. This might happen when the " +
|
||||||
|
"user already left the conversations-list screen so the popup bubble is not available anymore.", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showNewConversationsScreen() {
|
private void showNewConversationsScreen() {
|
||||||
|
Loading…
Reference in New Issue
Block a user