aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-12-08 11:50:52 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-12-08 11:50:52 +0100
commitc9863df6828342adab79de3b26553a932c308518 (patch)
tree20088546089a7d525d473f32303e5624f39d4233 /plugins
parent28b853b9fe5c87ebd5ca3abc59ce8c4ebec28044 (diff)
downloadsonarqube-c9863df6828342adab79de3b26553a932c308518.tar.gz
sonarqube-c9863df6828342adab79de3b26553a932c308518.zip
Fix some quality flaws
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTracking.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTracking.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTracking.java
index 884e298bd68..da4059eeb0d 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTracking.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTracking.java
@@ -82,8 +82,11 @@ public class IssueTracking implements BatchExtension {
// If each new issue matches an old one we can stop the matching mechanism
if (result.matched().size() != newIssues.size()) {
- if (sourceHashHolder != null && sourceHashHolder.getHashedReference() != null && hasLastScan) {
- mapNewissues(sourceHashHolder.getHashedReference(), sourceHashHolder.getHashedSource(), newIssues, result);
+ if (sourceHashHolder != null && hasLastScan) {
+ FileHashes hashedReference = sourceHashHolder.getHashedReference();
+ if (hashedReference != null) {
+ mapNewissues(hashedReference, sourceHashHolder.getHashedSource(), newIssues, result);
+ }
}
mapIssuesOnSameRule(newIssues, result);
}