react-native-google-places
react-native-google-places copied to clipboard
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo(com.google.android.libraries.places.widget.AutocompleteActivity)
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
Hello,
Is there any solution to the above problem?