Fixing NPE when Jira configuration block not present.
@@ -52,6 +52,7 @@ public class JiraService {
@PostConstruct
public void init() {
+ if(jiraProperties != null && !ScanUtils.empty(jiraProperties.getUrl())) {
JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
try {
@@ -64,6 +65,7 @@ public class JiraService {
this.projectClient = this.client.getProjectClient();
this.metaClient = this.client.getMetadataClient();
}
+ }
private List<Issue> getIssues(ScanRequest request) {
log.info("Executing getIssues API call");
