Fix SingleEntityExecution when a single element is emitted.
We now correctly exit the handler to avoid element emission followed by an error signal. Closes #1107
This commit is contained in:
@@ -150,6 +150,7 @@ interface ReactiveCassandraQueryExecution {
|
||||
|
||||
if (objects.size() == 1 || limiting) {
|
||||
sink.next(objects.get(0));
|
||||
return;
|
||||
}
|
||||
|
||||
sink.error(new IncorrectResultSizeDataAccessException(1, objects.size()));
|
||||
|
||||
Reference in New Issue
Block a user