Skip to content

Commit

Permalink
Return null with empty results.
Browse files Browse the repository at this point in the history
  • Loading branch information
valdar committed Sep 7, 2020
1 parent bb8d2a3 commit 2edcfc0
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -155,17 +155,14 @@ public synchronized List<SourceRecord> poll() {
records.add(record);
}
collectedRecords++;
} else {
break;
}
}

if (records.isEmpty()) {
return Collections.EMPTY_LIST;
return null;
} else {
return records;
}

}

@Override
Expand Down

0 comments on commit 2edcfc0

Please sign in to comment.