You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/01 18:24:16 UTC
[camel] 10/16: CAMEL-15562: fixed resumables availability check
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3a56bea57ddc8a5ce74db41e6be8c4d8c538803d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 24 14:58:21 2022 +0100
CAMEL-15562: fixed resumables availability check
---
.../org/apache/camel/component/file/consumer/FileResumeSet.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/consumer/FileResumeSet.java b/components/camel-file/src/main/java/org/apache/camel/component/file/consumer/FileResumeSet.java
index 780f77b..0493186 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/consumer/FileResumeSet.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/consumer/FileResumeSet.java
@@ -59,6 +59,12 @@ public final class FileResumeSet implements ResumableSet<File> {
* @return true if there are resumable files or false otherwise
*/
public boolean hasResumables() {
- return outputFiles != null && outputFiles.length != inputFiles.length;
+ if (outputFiles != null && outputFiles.length > 0) {
+ if (outputFiles.length != inputFiles.length) {
+ return true;
+ }
+ }
+
+ return false;
}
}