Skip to content

PlaceAutocompleteActivity crash #733

Open
@arnaud33200

Description

@arnaud33200

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions