You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ra...@apache.org on 2005/11/01 21:49:45 UTC

svn commit: r330121 - /xmlbeans/branches/1.x/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java

Author: radup
Date: Tue Nov  1 12:49:43 2005
New Revision: 330121

URL: http://svn.apache.org/viewcvs?rev=330121&view=rev
Log:
Fix NPE when reading Java binding information for redefined types. Integ from the V2 line.

Modified:
    xmlbeans/branches/1.x/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java

Modified: xmlbeans/branches/1.x/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java
URL: http://svn.apache.org/viewcvs/xmlbeans/branches/1.x/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java?rev=330121&r1=330120&r2=330121&view=diff
==============================================================================
--- xmlbeans/branches/1.x/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java (original)
+++ xmlbeans/branches/1.x/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java Tue Nov  1 12:49:43 2005
@@ -1843,8 +1843,10 @@
                         impl.setContainerFieldIndex((short)2, readShort());
                         break;
                 }
-                impl.setFullJavaName(readString());
-                impl.setFullJavaImplName(readString());
+                String jn = readString();
+                impl.setFullJavaName(jn == null ? "" : jn);
+                jn = readString();
+                impl.setFullJavaImplName(jn == null ? "" : jn);
 
                 impl.setAnonymousTypeRefs(readTypeRefArray());
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org