Skip to content

[stable-25.0.x] fix(chat): Avoid NPE when opening a file attachment in the Files app - #6600

Merged
mahibi merged 1 commit into
stable-25.0.xfrom
backport/6596/stable-25.0.x
Aug 27, 2026
Merged

[stable-25.0.x] fix(chat): Avoid NPE when opening a file attachment in the Files app#6600
mahibi merged 1 commit into
stable-25.0.xfrom
backport/6596/stable-25.0.x

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 27, 2026

Copy link
Copy Markdown

Backport of PR #6596

message.activeUser is a deprecated field that is no longer populated
for messages loaded via chatViewModel.getMessageById(), causing
openInFilesApp to crash on the !! assertion. Use the activity's own
conversationUser instead, and guard against empty file id/link.

Assisted-by: Claude:claude-sonnet-5

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@backportbot
backportbot Bot requested review from mahibi and rapterjet2004 August 27, 2026 15:50
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Aug 27, 2026
@backportbot backportbot Bot added this to the 25.0.0 milestone Aug 27, 2026
@mahibi
mahibi merged commit b2aa5a9 into stable-25.0.x Aug 27, 2026
11 of 15 checks passed
@mahibi
mahibi deleted the backport/6596/stable-25.0.x branch August 27, 2026 15:54
@github-actions

Copy link
Copy Markdown
Contributor

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