Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when post to LinkedIn Group requires moderation #136

Open
GoogleCodeExporter opened this issue Aug 17, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I'm using linkedin-j 1.0.429.

I find that I get a crash when performing this:

    LinkedInApiClient.createPost(groupId, title, status);

in the case where the LinkedIn Group I'm posting to requires moderation of this 
post.

When moderation isn't required, it works fine.

When moderation *is* required, it posts fine to the group, but then linkedin-j 
crashes due to a NullPointerException as follows:

java.lang.NullPointerException
    at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:66)
    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:56)
    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:67)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.getWrappedInputStream(BaseLinkedInApiClient.java:3920)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:3843)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.createPost(BaseLinkedInApiClient.java:3294)
    at com.foo.bar.server.LinkedInApi.updateStatus(LinkedInApi.java:214)


I'm guessing that in the case where the post requires moderation, the response 
from LinkedIn is different than in the case where moderation isn't required and 
that difference is not properly handled by linkedin-j 1.0.429.

Original issue reported on code.google.com by jjdemp...@gmail.com on 4 Apr 2013 at 4:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant