diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-12-17 14:56:59 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-12-17 14:57:42 +0100 |
commit | 5ac9871dac89a38b517c231719f55aeae4dc1d7c (patch) | |
tree | f5b72a8f182aba04996f6eae266b7cbb10dd9bac /sonar-batch-protocol | |
parent | b2c96e385b8ea30cf41ae3b27159c91a254a20b3 (diff) | |
download | sonarqube-5ac9871dac89a38b517c231719f55aeae4dc1d7c.tar.gz sonarqube-5ac9871dac89a38b517c231719f55aeae4dc1d7c.zip |
SONAR-5945 Fix NPE when having issues on deleted resources
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/issue/ReportIssue.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/issue/ReportIssue.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/issue/ReportIssue.java index 3917d54d2a2..713cfa0662a 100644 --- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/issue/ReportIssue.java +++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/issue/ReportIssue.java @@ -25,7 +25,7 @@ import java.util.Date; public class ReportIssue { - private long resourceBatchId; + private Long resourceBatchId; private boolean isNew; private String ruleKey; private String ruleRepo; @@ -60,12 +60,12 @@ public class ReportIssue { return key; } - public ReportIssue setResourceBatchId(long resourceBatchId) { + public ReportIssue setResourceBatchId(@Nullable Long resourceBatchId) { this.resourceBatchId = resourceBatchId; return this; } - public long resourceBatchId() { + public Long resourceBatchId() { return resourceBatchId; } |