Skip to content

Commit c426720

Browse files
authored
Merge pull request pusher#32 from eslamfaisal/patch-1
fix PusherBeamsPlugin.kt onNewIntent null safety
2 parents 8d472a5 + 5dcaeb8 commit c426720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/pusher_beams_android/android/src/main/kotlin/com/pusher/pusher_beams/PusherBeamsPlugin.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PusherBeamsPlugin : FlutterPlugin, Messages.PusherBeamsApi, ActivityAware,
4242
callbackHandlerApi = Messages.CallbackHandlerApi(binding.binaryMessenger)
4343
}
4444

45-
override fun onNewIntent(intent: Intent?): Boolean {
45+
override fun onNewIntent(intent: Intent): Boolean {
4646
handleIntent(context, intent!!)
4747
return false
4848
}
@@ -220,4 +220,4 @@ fun RemoteMessage.toPusherMessage() = mapOf(
220220
"title" to notification?.title,
221221
"body" to notification?.body,
222222
"data" to data
223-
)
223+
)

0 commit comments

Comments
 (0)