Skip to content

Commit

Permalink
chore: handle intent extras safely (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 authored Nov 19, 2024
1 parent 81f204b commit 7f5e0d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ModuleMessagingPushFCM @JvmOverloads constructor(
state.event == Lifecycle.Event.ON_CREATE
}.collect { state ->
when (state.event) {
Lifecycle.Event.ON_CREATE -> {
Lifecycle.Event.ON_CREATE -> runCatching {
val intentArguments = state.activity.get()?.intent?.extras ?: return@collect

if (moduleConfig.autoTrackPushEvents) {
Expand Down

0 comments on commit 7f5e0d7

Please sign in to comment.