]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19490 Retrieve GitHub org members using GraphQl
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Wed, 21 Jun 2023 15:34:29 +0000 (17:34 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 27 Jun 2023 20:02:45 +0000 (20:02 +0000)
server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationHttpClientImpl.java

index 177f8995f6bd618f45d581c2b3f22b64a794dfd5..65f7984a9ca6514c8fcdab196ae2f4f4cc4ea620 100644 (file)
@@ -93,7 +93,8 @@ public class GithubApplicationHttpClientImpl implements GithubApplicationHttpCli
 
 
   private static void validateEndPoint(String endPoint) {
-    checkArgument(endPoint.startsWith("/") || endPoint.startsWith("http"), "endpoint must start with '/' or 'http'");
+    checkArgument(endPoint.startsWith("/") || endPoint.startsWith("http") || endPoint.isEmpty(),
+      "endpoint must start with '/' or 'http'");
   }
 
   private static Request newGetRequest(String appUrl, AccessToken token, String endPoint) {