react-native-google-places icon indicating copy to clipboard operation
react-native-google-places copied to clipboard

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo(com.google.android.libraries.places.widget.AutocompleteActivity)

Open vikmanatusEurelis opened this issue 3 years ago • 1 comments

Hello,

We are using react-native-google-places in our app. On the general, everything is working perfectly on most of Android/IOS versions and devices. But for some reasons we don't know we are facing an error on Android 7.1.1 with device Nexus 6. This is the only version and device where we had crash reports for now.

The error is:

Fatal Exception: java.lang.RuntimeException:

Unable to start activity ComponentInfo{com.project.identifier/com.google.android.libraries.places.widget.AutocompleteActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference

As far as I could investiguate i found an occurence of this module in path android/src/main/java/com/arttitude360/reactnative/rngoogleplaces/RNGooglePlacesModule.java

I wanted to ask you if you could explain me why this error is happening only on this version of Android and if you could help me to find a way this fix this issue 😇

Best Regards

vikmanatusEurelis avatar Nov 26 '20 15:11 vikmanatusEurelis

Hello,

Is there any solution to the above problem?

dprajapati1179 avatar Dec 19 '22 08:12 dprajapati1179