From 5ac9871dac89a38b517c231719f55aeae4dc1d7c Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 17 Dec 2014 14:56:59 +0100 Subject: SONAR-5945 Fix NPE when having issues on deleted resources --- .../java/org/sonar/batch/protocol/output/issue/ReportIssue.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-batch-protocol') 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; } -- cgit v1.2.3