Skip to content

Reading a gist in anonymonous mode causes error #166

@madhephaestus

Description

@madhephaestus

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions