nextcloud-talk-android/app
rapterjet2004 2db6ce7066
Avoid NPE for databaseStorageModule
Exception java.lang.NullPointerException:
  at com.nextcloud.talk.conversationinfo.ConversationInfoActivity.handleConversation (ConversationInfoActivity.kt:686)
  at com.nextcloud.talk.conversationinfo.ConversationInfoActivity.access$handleConversation (ConversationInfoActivity.kt:94)
  at com.nextcloud.talk.conversationinfo.ConversationInfoActivity$initObservers$2.invoke (ConversationInfoActivity.kt:232)
  at com.nextcloud.talk.conversationinfo.ConversationInfoActivity$initObservers$2.invoke (ConversationInfoActivity.kt:227)
  at com.nextcloud.talk.conversationinfo.ConversationInfoActivity$sam$androidx_lifecycle_Observer$0.onChanged

Handle conversation is called when capabilities are retrieved, which can occur before databaseStorageModule is created. The fix was to call initObservers after the module was created.

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-06-03 13:24:34 +02:00
..
schemas/com.nextcloud.talk.data.source.local.TalkDatabase add diagnose screen and permission warnings in settings 2024-01-12 09:54:28 +01:00
src Avoid NPE for databaseStorageModule 2024-06-03 13:24:34 +02:00
build.gradle fix(deps): update dependency com.github.nextcloud.android-common:ui to v0.21.0 2024-05-21 20:27:22 +02:00
lint.xml Add SPDX header 2024-03-21 18:39:30 +01:00
proguard-rules.pro Add SPDX header 2024-03-17 14:19:56 +01:00