google-places-api-java icon indicating copy to clipboard operation
google-places-api-java copied to clipboard

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

Open billoneil opened this issue 5 years ago • 0 comments

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

billoneil avatar Jun 26 '19 18:06 billoneil