Skip to content

fix: Don't crash checking user's sensitive media preference#2207

Merged
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:amvm-crash
Apr 1, 2026
Merged

fix: Don't crash checking user's sensitive media preference#2207
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:amvm-crash

Conversation

@nikclayton

Copy link
Copy Markdown
Contributor

Previous code used accountManager.activeAccount!!, which might be null at the point activeAccount.alwaysShowSensitiveMedia is checked, causing an NPE.

Re-write the offending code to collect the correct flow from accountManager and use that data (guaranteed to be non-null at that point)

Previous code used `accountManager.activeAccount!!`, which might be null at
the point `activeAccount.alwaysShowSensitiveMedia` is checked, causing an NPE.

Re-write the offending code to collect the correct flow from `accountManager`
and use that data (guaranteed to be non-null at that point)
@nikclayton nikclayton merged commit 537ce6f into pachli:main Apr 1, 2026
28 checks passed
@nikclayton nikclayton deleted the amvm-crash branch April 1, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant