Fix crash opening message from notification

This commit is contained in:
Arne 2024-10-11 20:21:10 +02:00
parent 085f1e9b67
commit 01aca66f00

View file

@ -1820,8 +1820,10 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
page1.clear();
page2.clear();
}
if (page1.get() == null) page1 = new WeakReference(oldConversation.pagerAdapter.page1);
if (page2.get() == null) page2 = new WeakReference(oldConversation.pagerAdapter.page2);
if (oldConversation != null) {
if (page1.get() == null) page1 = new WeakReference(oldConversation.pagerAdapter.page1);
if (page2.get() == null) page2 = new WeakReference(oldConversation.pagerAdapter.page2);
}
if (page1.get() == null || page2.get() == null) {
throw new IllegalStateException("page1 or page2 were not present as child or in model?");
}