Code review fix for extra pulls
@@ -923,7 +923,7 @@ public class JiraService {
issuesParent = this.getIssues(parent);
if (GrandParentUrl.length() == 0) {
log.info("Grandparent feild is empty");
- issuesGrandParent = this.getIssues(request);
+ issuesGrandParent = null;
} else {
BugTracker bugTrackerGrandParenet;
bugTrackerGrandParenet = Grandparent.getBugTracker();
@@ -932,8 +932,8 @@ public class JiraService {
issuesGrandParent = this.getIssues(Grandparent);
}
} else {
- issuesParent = this.getIssues(request);
- issuesGrandParent = this.getIssues(request);
+ issuesParent = null;
+ issuesGrandParent = null;
}
log.info("Processing Results and publishing findings to Jira");
@@ -1027,6 +1027,7 @@ public class JiraService {
}
boolean parentCheck(String Key, List<Issue> issues) {
+ if (issues == null){
Map<String, Issue> jiraMap;
jiraMap = this.getJiraIssueMap(issues);
if (this.jiraProperties.isChild()) {
@@ -1037,10 +1038,13 @@ public class JiraService {
}
}
return false;
+ }
+ return false;
}
boolean GrandparentCheck(String Key, List<Issue> issues) {
+ if (issues == null){
Map<String, Issue> jiraMap;
jiraMap = this.getJiraIssueMap(issues);
if (this.jiraProperties.isChild()) {
@@ -1051,6 +1055,7 @@ public class JiraService {
}
}
return false;
-
+ }
+ return false;
}
}
