This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.11.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.11.x by this push: new 0a52ab8 camel-core - Fixed NPE in Recipient List EIP 0a52ab8 is described below commit 0a52ab88b4912ab6e72e44fe521d02bb8486c775 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Nov 13 11:59:36 2021 +0100 camel-core - Fixed NPE in Recipient List EIP --- .../main/java/org/apache/camel/processor/RecipientListProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/RecipientListProcessor.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/RecipientListProcessor.java index bf7f3dd..1c472d4 100644 --- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/RecipientListProcessor.java +++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/RecipientListProcessor.java @@ -218,7 +218,7 @@ public class RecipientListProcessor extends MulticastProcessor { index = doCreateProcessorExchangePairs(exchange, recipient, result, index); } return result; - } else if (recipientList.getClass().isArray()) { + } else if (recipientList != null && recipientList.getClass().isArray()) { Object[] arr = (Object[]) recipientList; int size = Array.getLength(recipientList); List<ProcessorExchangePair> result = new ArrayList<>(size);