Skip to content

Commit

Permalink
0003091: A corrupt batch being sent to a target results in a
Browse files Browse the repository at this point in the history
NullPointerException by load writing the batch to staging
  • Loading branch information
chenson42 committed May 4, 2017
1 parent a0badaa commit 4cad934
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -174,6 +174,9 @@ public void process() throws IOException {
} else if (line.startsWith(CsvConstants.CHANNEL)) {
channelLine = line;
} else {
if (writer == null) {
throw new IllegalStateException("Invalid batch data was received: " + line);
}
TableLine batchLine = batchTableLines.get(tableLine);
if (batchLine == null || (batchLine != null && batchLine.columnsLine == null)) {
TableLine syncLine = syncTableLines.get(tableLine);
Expand Down

0 comments on commit 4cad934

Please sign in to comment.