Skip to content

Commit

Permalink
check for null id
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@3864 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Oct 6, 2009
1 parent dd46590 commit 9840855
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -120,6 +120,12 @@ private BeanDeployment visit(BeanDeploymentArchive beanDeploymentArchive, Map<Be
// Check that the required services are specified
verifyServices(beanDeploymentArchive.getServices(), environment.getRequiredBeanDeploymentArchiveServices());

// Check the id is not null
if (beanDeploymentArchive.getId() == null)
{
throw new IllegalArgumentException("BeanDeploymentArchive must not be null " + beanDeploymentArchive);
}

// Create the BeanDeployment and attach
BeanDeployment parent = new BeanDeployment(beanDeploymentArchive, deploymentManager, deployment, extensionBeanDeployerEnvironment, deployment.getServices());
managerAwareBeanDeploymentArchives.put(beanDeploymentArchive, parent);
Expand Down

0 comments on commit 9840855

Please sign in to comment.