Open
Description
Environment details
- Specify the API at the beginning of the title (for example, "Places: ...")
- Android Pixel 3a emulator (also for physical pixel 2)
- demo version 3.2.0
Steps to reproduce
- setup demo project with wrong api key
- run the demo project on the phone or emulator
- navigate to: PLACE AUTOCOMPLETE > OPEN ACTIVITY
- on the search text field, type anything and the app crash
Code example
the problem is fairly straight forward: the wrong intent was pass to Autocomplete.getStatusFromIntent()
Stack trace
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1289448890, result=2, data=Intent { (has extras) }} to activity {com.example.placesdemo/com.example.placesdemo.PlaceAutocompleteActivity}: java.lang.NullPointerException: Intent expected to contain a Status, but doesn't.