|
36 | 36 | import com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory;
|
37 | 37 | import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory;
|
38 | 38 | import edu.umd.cs.findbugs.annotations.CheckForNull;
|
| 39 | +import edu.umd.cs.findbugs.annotations.NonNull; |
39 | 40 | import hudson.EnvVars;
|
40 | 41 | import hudson.Extension;
|
41 | 42 | import hudson.FilePath;
|
|
69 | 70 | import java.util.HashMap;
|
70 | 71 | import java.util.List;
|
71 | 72 | import java.util.Map;
|
72 |
| -import javax.annotation.Nonnull; |
73 | 73 | import jenkins.model.Jenkins;
|
74 | 74 | import net.sf.json.JSONObject;
|
75 | 75 | import org.jenkinsci.Symbol;
|
@@ -253,7 +253,7 @@ public JiraTestDataPublisher(
|
253 | 253 | */
|
254 | 254 | @Override
|
255 | 255 | public TestResultAction.Data contributeTestData(
|
256 |
| - Run<?, ?> run, @Nonnull FilePath workspace, Launcher launcher, TaskListener listener, TestResult testResult) |
| 256 | + Run<?, ?> run, @NonNull FilePath workspace, Launcher launcher, TaskListener listener, TestResult testResult) |
257 | 257 | throws IOException, InterruptedException {
|
258 | 258 |
|
259 | 259 | EnvVars envVars = run.getEnvironment(listener);
|
@@ -799,6 +799,10 @@ public FormValidation validateFieldConfigs(String jsonForm) throws FormException
|
799 | 799 | }
|
800 | 800 | }
|
801 | 801 |
|
| 802 | + if (jiraPublisherJSON == null) { |
| 803 | + return FormValidation.error("jiraPublisherJSON is null.\n"); |
| 804 | + } |
| 805 | + |
802 | 806 | // constructing the objects from json
|
803 | 807 | List<AbstractFields> configs =
|
804 | 808 | newInstancesFromHeteroList(req, jiraPublisherJSON.get("configs"), getListDescriptors());
|
|
0 commit comments