Call to setScopes(String...) with null field in AuthorizationCodeFlow results in NullPointerException #73
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
From ranas...@umich.edu on February 28, 2013 13:24:29
Version of google-oauth-java-client (e.g. 1.5.0-beta)? 1.13.1-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6 Describe the problem. Bug, setScopes(String...) being called with "null" parameter, being recognized by compiler as (Object)null. Called method expects null to be (Object[])null, and results in NullPointerException.
Caller:
com.google.api.client.auth.oauth2.AuthorizationCodeFlow.newAuthorizationUrl(AuthorizationCodeFlow.java:191)
Called:
com.google.api.client.auth.oauth2.AuthorizationCodeRequestUrl.setScopes(AuthorizationCodeRequestUrl.java:80) How would you expect it to be fixed? Cast field (this.scopes) to (String[]) when the field is null.
Original issue: http://code.google.com/p/google-oauth-java-client/issues/detail?id=73
The text was updated successfully, but these errors were encountered: