Skip to content

fix: skip setRead when the in-app message is no longer queued - #916

Merged
joaodordio merged 2 commits into
masterfrom
jena/setReadForMessage-crash-fix
Oct 8, 2026
Merged

joaodordio merged 2 commits into
masterfrom
jena/setReadForMessage-crash-fix

Conversation

@jena-chakour

@jena-chakour jena-chakour commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Passing a missing message into the Android SDK crashes the app with a NullPointerException.

📝 Summary

Skips setRead if the message is null

🎟️ Jira Ticket: SDK-785

📖 Description

Updates RNIterableAPIModuleImpl to check for message (RNIterableInternal.getMessageById(messageId)) and skip setRead if null.

🧪 How to test?

QA apps

🧾 Changelog

Fix Android NullPointerException

Passing a missing message into the Android SDK crashes the app with a NullPointerException.
@jena-chakour
jena-chakour requested a review from a team as a code owner October 7, 2026 14:24
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Lines Statements Branches Functions
Coverage: 72%
71.92% (579/805) 61.22% (229/374) 67.18% (174/259)

@qltysh

qltysh Bot commented Oct 7, 2026

Copy link
Copy Markdown

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@jferrao-itrbl jferrao-itrbl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joaodordio
joaodordio merged commit da71894 into master Oct 8, 2026
16 checks passed
@joaodordio
joaodordio deleted the jena/setReadForMessage-crash-fix branch October 8, 2026 13:15
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.

3 participants