tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r594232 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/EjbJarInfoBuilder.java
Date Mon, 12 Nov 2007 17:48:51 GMT
Author: dblevins
Date: Mon Nov 12 09:48:49 2007
New Revision: 594232

URL: http://svn.apache.org/viewvc?rev=594232&view=rev
Log:
Null pointer check on pulling deployment from the map

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/EjbJarInfoBuilder.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/EjbJarInfoBuilder.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/EjbJarInfoBuilder.java?rev=594232&r1=594231&r2=594232&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/EjbJarInfoBuilder.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/EjbJarInfoBuilder.java
Mon Nov 12 09:48:49 2007
@@ -187,7 +187,7 @@
 
     private void initJndiNames(Map<String, EjbDeployment> ejbds, EnterpriseBean bean,
EnterpriseBeanInfo info) {
         EjbDeployment deployment = ejbds.get(info.ejbDeploymentId);
-        for (Jndi jndi : deployment.getJndi()) {
+        if (deployment != null) for (Jndi jndi : deployment.getJndi()) {
             JndiNameInfo jndiNameInfo = new JndiNameInfo();
             jndiNameInfo.intrface = jndi.getInterface();
             jndiNameInfo.name = jndi.getName();



Mime
View raw message