You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by hu...@apache.org on 2006/07/19 11:15:45 UTC

svn commit: r423411 - /webservices/commons/trunk/modules/XmlSchema/test/tests/w3c/TestRoundTripXSD.java

Author: hughesj
Date: Wed Jul 19 02:15:43 2006
New Revision: 423411

URL: http://svn.apache.org/viewvc?rev=423411&view=rev
Log:
Fixed NPE when running with debug

Modified:
    webservices/commons/trunk/modules/XmlSchema/test/tests/w3c/TestRoundTripXSD.java

Modified: webservices/commons/trunk/modules/XmlSchema/test/tests/w3c/TestRoundTripXSD.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/test/tests/w3c/TestRoundTripXSD.java?rev=423411&r1=423410&r2=423411&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/test/tests/w3c/TestRoundTripXSD.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/test/tests/w3c/TestRoundTripXSD.java Wed Jul 19 02:15:43 2006
@@ -175,14 +175,16 @@
         }
     }
 
-
     private void printFailureDetail(XmlSchema schema, DetailedDiff detaileddiffs) {
         System.err.println(super.getName() + " failure detail");
         System.err.println("-----");
         schema.write(System.err);
-        ListIterator li = detaileddiffs.getAllDifferences().listIterator();
-        while (li.hasNext()) {
-            System.err.println(li.next());
+        if (detaileddiffs != null) {
+            ListIterator li = detaileddiffs.getAllDifferences().listIterator();
+
+            while (li.hasNext()) {
+                System.err.println(li.next());
+            }
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org