From 065d44f65d984bf2a461b9951eb8ae34908ff4ef Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Thu, 5 Jul 2018 00:00:23 -0700 Subject: [PATCH] Fixed NPE. --- src/main/java/org/gitlab4j/api/LicensesApi.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gitlab4j/api/LicensesApi.java b/src/main/java/org/gitlab4j/api/LicensesApi.java index 90a13ee1..52e173fb 100644 --- a/src/main/java/org/gitlab4j/api/LicensesApi.java +++ b/src/main/java/org/gitlab4j/api/LicensesApi.java @@ -1,9 +1,11 @@ package org.gitlab4j.api; import java.util.List; + import javax.ws.rs.core.Form; import javax.ws.rs.core.GenericType; import javax.ws.rs.core.Response; + import org.gitlab4j.api.models.LicenseTemplate; /** @@ -24,8 +26,7 @@ public class LicensesApi extends AbstractApi { * @throws GitLabApiException if any exception occurs */ public List getAllLicenseTemplates() throws GitLabApiException { - GitLabApiForm formData = null; - Response response = get(Response.Status.OK, formData.asMap(), "licenses"); + Response response = get(Response.Status.OK, null, "licenses"); return (response.readEntity(new GenericType>() {})); } @@ -53,8 +54,7 @@ public class LicensesApi extends AbstractApi { * @throws GitLabApiException if any exception occurs */ public LicenseTemplate getSingleLicenseTemplate(String key) throws GitLabApiException { - GitLabApiForm formData = null; - Response response = get(Response.Status.OK, formData.asMap(), "licenses", key); + Response response = get(Response.Status.OK, null, "licenses", key); return (response.readEntity(LicenseTemplate.class)); } } \ No newline at end of file -- GitLab