Skip to content

Conversation

@george-g-y-b
Copy link

Hello,

Opening this PR to address an unhandled exception that has been affecting our Android users during internal testing.

Description
Fixes NullPointerException crashes in push notification handling methods when null parameters are passed to the Android SDK, in addInappNotificationCardToView. See screenshot of the NullPointerException in Sentry below.

image

Changes

  • Add null checks for RemoteMessage and Application parameters
  • Add validation for empty/null tokens
  • Improve error logging and promise rejection handling

It would be great to address this before we release Intercom to our production applications, at the moment we are patching.

Thanks!

@george-g-y-b george-g-y-b changed the base branch from dev to main August 4, 2025 16:27
@jasonpraful
Copy link
Member

Thanks! Handled in #320

@jasonpraful jasonpraful closed this Sep 8, 2025
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.

2 participants