Skip to content

Commit

Permalink
[RESTEASY-1580] Prevent NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano committed Feb 2, 2017
1 parent 73ad62a commit dd2f05e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -127,7 +127,7 @@ else if(registrations.contains(beanName) && bean instanceof ResteasyRegistration
resourceFactories.put(registeredBeanName, resourceFactory);
}

else if (bean instanceof ResteasyDeployment) {
else if (bean instanceof ResteasyDeployment && deployment != null) {
ResteasyDeployment beanDeployment = (ResteasyDeployment) bean;
deployment.merge(beanDeployment);
deployment.start();
Expand Down

0 comments on commit dd2f05e

Please sign in to comment.