From d720b00c9b3b05269f419d3e9f23e1f5bc40505d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Mon, 8 Dec 2014 10:03:51 +0100 Subject: [PATCH] SONAR-5801 Protect against null file_sources.data column --- .../source/index/SourceLineResultSetIterator.java | 4 ++++ .../index/SourceLineResultSetIteratorTest.java | 12 ++++++++++++ .../SourceLineResultSetIteratorTest/null-file.xml | 6 ++++++ 3 files changed, 22 insertions(+) create mode 100644 server/sonar-server/src/test/resources/org/sonar/server/source/index/SourceLineResultSetIteratorTest/null-file.xml diff --git a/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java b/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java index e371cc0ff8b..58ad5f49193 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java +++ b/server/sonar-server/src/main/java/org/sonar/server/source/index/SourceLineResultSetIterator.java @@ -119,6 +119,10 @@ public class SourceLineResultSetIterator extends ResultSetIterator + + + + -- 2.39.5