[jboss-cvs] JBossAS SVN: r81459 - trunk/connector/src/main/org/jboss/resource/deployers/builder.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 21 23:39:45 EST 2008
Author: scott.stark at jboss.org
Date: 2008-11-21 23:39:45 -0500 (Fri, 21 Nov 2008)
New Revision: 81459
Modified:
trunk/connector/src/main/org/jboss/resource/deployers/builder/MetaDataTypeMappingBuilder.java
Log:
JBAS-6215, Only try to add a TypeMapping attribute if the metadata has a non-null value
Modified: trunk/connector/src/main/org/jboss/resource/deployers/builder/MetaDataTypeMappingBuilder.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/deployers/builder/MetaDataTypeMappingBuilder.java 2008-11-22 03:02:37 UTC (rev 81458)
+++ trunk/connector/src/main/org/jboss/resource/deployers/builder/MetaDataTypeMappingBuilder.java 2008-11-22 04:39:45 UTC (rev 81459)
@@ -66,9 +66,11 @@
typeMapping = md.getTypeMapping();
}
-
- attribute = buildSimpleAttribute("TypeMapping", typeMapping);
- attributes.add(attribute);
+ if(typeMapping != null)
+ {
+ attribute = buildSimpleAttribute("TypeMapping", typeMapping);
+ attributes.add(attribute);
+ }
return attributes;
}
More information about the jboss-cvs-commits
mailing list