Skip to content

[stable-25.0.x] fix(crash): guard startActivity calls against finishing/destroyed activity - #6687

Merged
mahibi merged 1 commit into
stable-25.0.xfrom
backport/6682/stable-25.0.x
Sep 10, 2026
Merged

[stable-25.0.x] fix(crash): guard startActivity calls against finishing/destroyed activity#6687
mahibi merged 1 commit into
stable-25.0.xfrom
backport/6682/stable-25.0.x

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 10, 2026

Copy link
Copy Markdown

Backport of PR #6682

…ivity

Async user lookups in handleIntent() could resolve after the user already
left MainActivity, so the resulting startActivity call ran on an invalid
activity state. That rare timing triggers a framework NPE in
ActivityTaskManagerService.getTaskWithAdjacent. Skip the call when the
activity is finishing or destroyed, matching the existing guard already
used in handleDeepLink() and startConversation().

Assisted-by: Claude Code:claude-sonnet-5

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@backportbot
backportbot Bot requested a review from mahibi September 10, 2026 09:11
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Sep 10, 2026
@backportbot backportbot Bot added this to the 25.0.0 milestone Sep 10, 2026
@mahibi
mahibi merged commit 6144960 into stable-25.0.x Sep 10, 2026
10 of 15 checks passed
@mahibi
mahibi deleted the backport/6682/stable-25.0.x branch September 10, 2026 09:14
@github-actions

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/34459278120/artifacts/10146020420
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 AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant