Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit cfc7005

Browse files
author
Lee Skillen
committed
Fix NullPointerException on RateLimiter when handling API errors.
1 parent f23afcd commit cfc7005

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/kohsuke/github/GitHub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ public class GitHub {
133133
}
134134
}
135135

136+
this.rateLimitHandler = rateLimitHandler;
137+
136138
if (login==null && encodedAuthorization!=null)
137139
login = getMyself().getLogin();
138140
this.login = login;
139-
this.rateLimitHandler = rateLimitHandler;
140141
}
141142

142143
/**

0 commit comments

Comments
 (0)