Permalink
Browse files

avoiding NPE when scanning jaxrs @Provider

git-svn-id: https://svn.apache.org/repos/asf/openejb/trunk@1342746 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
rmannibucau committed May 25, 2012
1 parent 0fbcbb9 commit 2cc273f54f9baeabac629e140cb7cac5a0d92fd1
@@ -1438,7 +1438,9 @@ public EjbModule deploy(EjbModule ejbModule) throws OpenEJBException {
// ejb can be rest bean and only then in standalone so scan providers here too
// adding them to app since they should be in the app classloader
- addJaxRsProviders(finder, ejbModule.getAppModule().getJaxRsProviders(), Provider.class);
+ if (ejbModule.getAppModule() != null) {
+ addJaxRsProviders(finder, ejbModule.getAppModule().getJaxRsProviders(), Provider.class);
+ }
return ejbModule;
}

0 comments on commit 2cc273f

Please sign in to comment.