Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlaceAutocompleteActivity crash #733

Open
arnaud33200 opened this issue Aug 29, 2024 · 1 comment · May be fixed by #734
Open

PlaceAutocompleteActivity crash #733

arnaud33200 opened this issue Aug 29, 2024 · 1 comment · May be fixed by #734
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@arnaud33200
Copy link

Environment details

  1. Specify the API at the beginning of the title (for example, "Places: ...")
  2. Android Pixel 3a emulator (also for physical pixel 2)
  3. demo version 3.2.0

Steps to reproduce

  1. setup demo project with wrong api key
  2. run the demo project on the phone or emulator
  3. navigate to: PLACE AUTOCOMPLETE > OPEN ACTIVITY
  4. 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.
@arnaud33200 arnaud33200 added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 29, 2024
@arnaud33200 arnaud33200 linked a pull request Aug 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@arnaud33200 and others