geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: r201812 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
Date Sun, 26 Jun 2005 09:59:15 GMT
Author: gdamour
Date: Sat Jun 25 18:43:34 2005
New Revision: 201812

URL: http://svn.apache.org/viewcvs?rev=201812&view=rev
Log:
Test that there is actually a schema defined by the types element.

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java?rev=201812&r1=201811&r2=201812&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/AxisServiceBuilder.java
Sat Jun 25 18:43:34 2005
@@ -306,11 +306,12 @@
                     TTypes type = types[i];
                     XmlCursor typeCursor = type.newCursor();
                     try {
-                        typeCursor.toChild(SCHEMA_QNAME);
-                        do {
-                            SchemaDocument.Schema schema = (SchemaDocument.Schema) typeCursor.getObject();
-                            rewriteSchema(schema, contextURI, key);
-                         } while (typeCursor.toNextSibling(SCHEMA_QNAME));
+                        if (typeCursor.toChild(SCHEMA_QNAME)) {
+                            do {
+                                SchemaDocument.Schema schema = (SchemaDocument.Schema) typeCursor.getObject();
+                                rewriteSchema(schema, contextURI, key);
+                             } while (typeCursor.toNextSibling(SCHEMA_QNAME));
+                        }
                     } finally {
                         typeCursor.dispose();
                     }



Mime
View raw message