Skip to content

avoid crash when hangup network calls#6312

Merged
mahibi merged 1 commit into
masterfrom
bugfix/noid/fixCrashOnHangup
Jun 4, 2026
Merged

avoid crash when hangup network calls#6312
mahibi merged 1 commit into
masterfrom
bugfix/noid/fixCrashOnHangup

Conversation

@mahibi
Copy link
Copy Markdown
Collaborator

@mahibi mahibi commented Jun 4, 2026

🏁 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?)

It will avoid the crash

Exception java.lang.RuntimeException: Unable to destroy activity {com.nextcloud.talk2/com.nextcloud.talk.activities.CallActivity}: kotlin.UninitializedPropertyAccessException: lateinit property conversationUser has not been initialized
    at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5456)
    at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:5493)
    at android.app.servertransaction.DestroyActivityItem.execute (DestroyActivityItem.java:44)
    at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
    at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2267)
    at android.os.Handler.dispatchMessage (Handler.java:107)
    at android.os.Looper.loop (Looper.java:237)
    at android.app.ActivityThread.main (ActivityThread.java:8167)
    at java.lang.reflect.Method.invoke
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)
Caused by kotlin.UninitializedPropertyAccessException: lateinit property conversationUser has not been initialized
    at com.nextcloud.talk.activities.CallActivity.getConversationUser (CallActivity.kt:235)
    at com.nextcloud.talk.activities.CallActivity.hangupNetworkCalls (CallActivity.kt:1994)
    at com.nextcloud.talk.activities.CallActivity.hangup (CallActivity.kt:1953)
    at com.nextcloud.talk.activities.CallActivity.onDestroy (CallActivity.kt:1352)
    at android.app.Activity.performDestroy (Activity.java:8225)
    at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1342)
    at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5441)

However it does not fix a root cause why the user is null

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi added this to the 24.1.0 milestone Jun 4, 2026
@mahibi mahibi self-assigned this Jun 4, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Jun 4, 2026
@mahibi
Copy link
Copy Markdown
Collaborator Author

mahibi commented Jun 4, 2026

/backport to stable-24.0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

APK file: https://github.com/nextcloud/talk-android/actions/runs/26960976585/artifacts/7415499862
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)

@mahibi mahibi merged commit b6fe369 into master Jun 4, 2026
19 of 20 checks passed
@mahibi mahibi deleted the bugfix/noid/fixCrashOnHangup branch June 4, 2026 16:21
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