From e4bacc13531a0477b8be35d95ee0fa3418b25567 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Thu, 20 Aug 2015 11:28:08 -0400 Subject: [PATCH] isRefreshScoped returns false if beanName is null Refer to notes in https://github.com/spring-cloud/spring-cloud-commons/issues/49 for details --- .../context/properties/ConfigurationPropertiesRebinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java index a47c6d41..8d6dab67 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java @@ -122,7 +122,7 @@ ApplicationListener, ApplicationContextAware { } } } - if (this.refreshScope == null) { + if (beanName == null || this.refreshScope == null) { return false; } return this.beanFactory.containsBeanDefinition(beanName)