linhopa / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

OAuthClient.invoke will throw an NPE when the call does not end successfully #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create an OAuthClient
2. call invoke with ParameterStyle.QUERY_STRING with an invalid signature

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

An OAuthProblemException should be thrown, instead an NPE is thrown because the 
entity 
assocaited with the response is null (as the ParameterStyle is QUERY_STRING).

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

OS X, 20090531

Please provide any additional information below.

I guess to fix it HttpMessage.newRequest would need to allocate an empty body 
so body is not 
null.

Original issue reported on code.google.com by Mathias....@gmail.com on 8 Apr 2010 at 9:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I can't reproduce this.  A stack trace would be helpful.

Original comment by jmkrist...@gmail.com on 24 May 2010 at 3:27