Skip to content

Commit

Permalink
Error if loadBeanDeploymentArchive returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Oct 17, 2009
1 parent bd40e12 commit 89c554d
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -132,7 +132,12 @@ public void deployBeans(Environment environment)
{
for (ExtensionBean bean : extensionBeanDeployerEnvironment.getBeans())
{
if (deployment.loadBeanDeploymentArchive(bean.getBeanClass()).equals(beanDeploymentArchive))
BeanDeploymentArchive classBeanDeploymentArchive = deployment.loadBeanDeploymentArchive(bean.getBeanClass());
if (classBeanDeploymentArchive == null)
{
throw new IllegalStateException("deployment.loadBeanDeploymentArchive() returned null for " + bean.getBeanClass());
}
if (classBeanDeploymentArchive.equals(beanDeploymentArchive))
{
beanDeployer.getManager().addBean(bean);
}
Expand Down

0 comments on commit 89c554d

Please sign in to comment.