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

Reading a gist in anonymonous mode causes error #166

Closed
madhephaestus opened this issue Mar 22, 2015 · 6 comments
Closed

Reading a gist in anonymonous mode causes error #166

madhephaestus opened this issue Mar 22, 2015 · 6 comments

Comments

@madhephaestus
Copy link
Contributor

When I run

GitHub github = GitHub.connectAnonymously();

GHGist gist = github.getGist(currentGist);

I get the following exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:464)
at org.kohsuke.github.GitHub.getUser(GitHub.java:293)
at org.kohsuke.github.GHGist.wrapUp(GHGist.java:106)
at org.kohsuke.github.GitHub.getGist(GitHub.java:370)
at ...

SInce i connected anynomously, why is it asking for the user? Is there something i can set to get it to ignore this?

kohsuke added a commit that referenced this issue Mar 22, 2015
@kohsuke
Copy link
Collaborator

kohsuke commented Mar 22, 2015

Fixed.

@kohsuke kohsuke closed this as completed Mar 22, 2015
@madhephaestus
Copy link
Contributor Author

Can you let me know what Maven version to use to get this fix, or do i need to pull the source and build?

@KostyaSha
Copy link
Contributor

You should wait until release + 1-2 days for mirroring on maven repos.

@madhephaestus
Copy link
Contributor Author

Thank you!

Can you post the link here when it is posted? (As a historical record thing, when I search posts about how to fix something I hate coming to dead ends where the fix happened off camera)

@KostyaSha
Copy link
Contributor

@madhephaestus i'm just monitoring commits on master to get new version ;)

@madhephaestus
Copy link
Contributor Author

Confirmed 1.64 does not have this issue.

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

No branches or pull requests

3 participants