WioMedia / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

NullPointerException when posting moderation required comments #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call addPostComment to post a comment when the comment requires moderation
2.
3.

What is the expected output? What do you see instead?
A LinkedInApiException should probably be thrown to indicate that the comment 
was submitted but not posted, instead, a null pointer exception is thrown.

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

Please provide any additional information below.
When posting a comment that requires moderator approval, linkedin responds with 
a 202 status with no error. 
In BaseLinkedInApiClient, only a 201 status is checked. Therefore an error is 
expected when there are no errors, and on the error umarshalling step a null 
pointer exception is thrown. 

Original issue reported on code.google.com by mrclea...@gmail.com on 3 Oct 2011 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by nabeelmukhtar on 9 Oct 2011 at 5:34