Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Commit fd13bc8

Browse files
committed
Fix bugs if null value in cells
1 parent c840f11 commit fd13bc8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/keedio/flume/source/SQLSourceHelper.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ public List<String[]> getAllRows(List<List<Object>> queryResult){
124124
List<Object> rawRow = queryResult.get(i);
125125
row = new String[rawRow.size()];
126126
for (int j=0; j< rawRow.size(); j++){
127-
row[j] = rawRow.get(j).toString();
127+
if (rawRow.get(j) != null)
128+
row[j] = rawRow.get(j).toString();
129+
else
130+
row[j] = "";
128131
}
129132
allRows.add(row);
130133
}

0 commit comments

Comments
 (0)