From 1dc1303b548b0b43dfdfe908cf0e8b933db3c2c1 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Wed, 24 Feb 2016 16:54:16 -0500 Subject: [PATCH] assert BeanFactory is not null --- .../springframework/cloud/stream/binder/PartitionHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/PartitionHandler.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/PartitionHandler.java index 43990ec40..4bee24d87 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/PartitionHandler.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/PartitionHandler.java @@ -60,6 +60,7 @@ public class PartitionHandler { EvaluationContext evaluationContext, PartitionSelectorStrategy partitionSelector, DefaultBindingPropertiesAccessor properties, int partitionCount) { + Assert.notNull(beanFactory, "BeanFactory must not be null"); this.beanFactory = beanFactory; this.evaluationContext = evaluationContext; this.partitionSelector = partitionSelector == null