Skip to content

fix NPE in updateMessagesData - #6451

Open
mahibi wants to merge 1 commit into
masterfrom
bugfix/noid/fixUpdateMessagesDataNpe
Open

fix NPE in updateMessagesData#6451
mahibi wants to merge 1 commit into
masterfrom
bugfix/noid/fixUpdateMessagesDataNpe

Conversation

@mahibi

@mahibi mahibi commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator
Exception java.lang.NullPointerException:
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.updateMessagesData (OfflineFirstChatRepository.kt:1341)
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.access$updateMessagesData (OfflineFirstChatRepository.kt:55)
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository$updateMessagesData$1.invokeSuspend (OfflineFirstChatRepository.kt:19)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:34)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:98)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:224)
  at android.os.Looper.loop (Looper.java:318)
  at android.app.ActivityThread.main (ActivityThread.java:8763)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:561)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1013)

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Exception java.lang.NullPointerException:
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.updateMessagesData (OfflineFirstChatRepository.kt:1341)
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.access$updateMessagesData (OfflineFirstChatRepository.kt:55)
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository$updateMessagesData$1.invokeSuspend (OfflineFirstChatRepository.kt:19)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:34)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:98)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:224)
  at android.os.Looper.loop (Looper.java:318)
  at android.app.ActivityThread.main (ActivityThread.java:8763)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:561)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1013)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi self-assigned this Aug 3, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Aug 3, 2026
@mahibi
mahibi requested a review from rapterjet2004 August 3, 2026 18:20
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/30840816882/artifacts/8866919419
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant