google-code-export / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
1 stars 3 forks source link

user.getEmail() return null pointer exception. Even after authorization works #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
i dont know the solution yet

But this is what i am doing
1. Created POJO
2. Generated Cloud endpoint class
3. Added USER parameter and web client id, scopes, android client id and 
audiences
4. add User as a parameter to insert operation.
5. inserting works after authorizing from api-explorer.
6. Throws null pointer if i try to access user.(any function). 
any solutions ?? or am i stupid ?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by gautamks...@gmail.com on 19 Apr 2014 at 4:28

GoogleCodeExporter commented 9 years ago
I am also having same problem. Parameter User is always be a  null even I set 
the scope in backend @Api (scopes = { 
"https://www.googleapis.com/auth/userinfo.email" }) .

Original comment by uttamgu...@gmail.com on 9 Feb 2015 at 4:57