ajith-ab / react-native-receive-sharing-intent

A React Native plugin that enables React Native apps to receive sharing photos, videos, text, urls or any other file types from another app
MIT License
297 stars 108 forks source link

Update ReceiveSharingIntentHelper when intent is null #109

Open JeanEXE opened 2 years ago

JeanEXE commented 2 years ago

Has a try catch error on Android when i maximize my app without a intent shared (intent null)

[Error: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference]

With this validation the error will not be appears anymore <3

robbiedood commented 2 years ago

The one liner is the simplest solution I've seen since multiple discussions on the issue, e.g. #96 and #110. Thanks! @JeanEXE