react-native-receive-sharing-intent icon indicating copy to clipboard operation
react-native-receive-sharing-intent copied to clipboard

Update ReceiveSharingIntentHelper when intent is null

Open JeanEXE opened this issue 3 years ago • 1 comments

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

JeanEXE avatar Oct 27 '21 20:10 JeanEXE

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

robbiedood avatar Jan 09 '22 05:01 robbiedood