Skip to content

[stable-24.0] avoid crash when hangup network calls#6314

Merged
mahibi merged 1 commit into
stable-24.0from
backport/6312/stable-24.0
Jun 4, 2026
Merged

[stable-24.0] avoid crash when hangup network calls#6314
mahibi merged 1 commit into
stable-24.0from
backport/6312/stable-24.0

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented Jun 4, 2026

Backport of PR #6312

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>
@backportbot backportbot Bot requested a review from mahibi June 4, 2026 16:21
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Jun 4, 2026
@backportbot backportbot Bot added this to the 24.0.0 milestone Jun 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

APK file: https://github.com/nextcloud/talk-android/actions/runs/26964767718/artifacts/7417371409
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 349f88b into stable-24.0 Jun 4, 2026
12 of 15 checks passed
@mahibi mahibi deleted the backport/6312/stable-24.0 branch June 4, 2026 17:04
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