tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r981994 - /openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java
Date Tue, 03 Aug 2010 18:16:20 GMT
Author: kevan
Date: Tue Aug  3 18:16:19 2010
New Revision: 981994

URL: http://svn.apache.org/viewvc?rev=981994&view=rev
Log:
OPENEJB-1315 merge fix to 3.1.x

Modified:
    openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java

Modified: openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java?rev=981994&r1=981993&r2=981994&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java
(original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java
Tue Aug  3 18:16:19 2010
@@ -410,10 +410,12 @@ public class JndiEncInfoBuilder {
 
         EjbResolver ejbResolver = getEjbResolver(moduleId);
 
-        for (String ejbName : sessionBean.getDependsOn()) {
-            String deploymentId = ejbResolver.resolve(new SimpleRef(ejbName), moduleUri);
-            if (deploymentId != null) {
-                beanInfo.dependsOn.add(deploymentId);
+        if (sessionBean.getDependsOn() != null) {
+            for (String ejbName : sessionBean.getDependsOn()) {
+                String deploymentId = ejbResolver.resolve(new SimpleRef(ejbName), moduleUri);
+                if (deploymentId != null) {
+                    beanInfo.dependsOn.add(deploymentId);
+                }
             }
         }
 



Mime
View raw message