Author: scheu
Date: Wed Nov 7 10:04:49 2007
New Revision: 592837
URL: http://svn.apache.org/viewvc?rev=592837&view=rev
Log:
WSCOMMONS-234
Contributor:Rich Scheuerle
Quick Change to CopyUtils.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/CopyUtils.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/CopyUtils.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/CopyUtils.java?rev=592837&r1=592836&r2=592837&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/CopyUtils.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/CopyUtils.java
Wed Nov 7 10:04:49 2007
@@ -236,9 +236,12 @@
copyOMElement(factory, targetParent, sourceOMSE);
return;
}
-
- // Otherwise create a copy of the OMDataSource
OMDataSourceExt targetDS = ((OMDataSourceExt) ds).copy();
+ if (targetDS == null) {
+ copyOMElement(factory, targetParent, sourceOMSE);
+ return;
+ }
+ // Otherwise create a target OMSE with the copied DataSource
OMSourcedElement targetOMSE =
factory.createOMElement(targetDS,
sourceOMSE.getLocalName(),
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]