Skip to content

java.lang.IllegalArgumentException: No enum constant se.walkercrou.places.Scope. #66

@billoneil

Description

@billoneil

It appears like Google has a breaking change where their API does not always return the "scope" field in the API anymore. We first detected this on June 4th and it got much worse on June 24th. ~50% of requests no longer have the "scope" field.

java.lang.IllegalArgumentException: No enum constant se.walkercrou.places.Scope.

This is caused by the following lines converting a null value to an empty string and trying to get the enum value of the empty string.

https://github.com/windy1/google-places-api-java/blob/master/src/main/java/se/walkercrou/places/Place.java#L73-L74

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions