geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1084487 - /geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java
Date Wed, 23 Mar 2011 07:27:41 GMT
Author: genspring
Date: Wed Mar 23 07:27:41 2011
New Revision: 1084487

URL: http://svn.apache.org/viewvc?rev=1084487&view=rev
Log:
add a fake RefAddr to the refrence is there's no StringAddrType set in geronimo DD to avoid
a following NPE.

Modified:
    geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java

Modified: geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java?rev=1084487&r1=1084486&r2=1084487&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java
(original)
+++ geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java
Wed Mar 23 07:27:41 2011
@@ -257,7 +257,10 @@ public class AdminObjectRefBuilder exten
                 String refAddrType = getStringValue(gerResourceEnvRef.getStringAddrType());
                 String refAddr = getStringValue(gerResourceEnvRef.getStringAddr());
                 addr = new StringRefAddr(refAddrType, refAddr);
+            } else {
+                addr = new StringRefAddr("","");
             }
+            
             String objectFactory = getStringValue(gerResourceEnvRef.getObjectFactory());
             String objectFactoryLocation = getStringValue(gerResourceEnvRef.getObjectFactoryLocation());
             return new Reference(clazz, addr, objectFactory, objectFactoryLocation);



Mime
View raw message