You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2007/07/05 11:39:26 UTC
svn commit: r553438 -
/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Author: amilas
Date: Thu Jul 5 02:39:25 2007
New Revision: 553438
URL: http://svn.apache.org/viewvc?view=rev&rev=553438
Log:
add a null pointer check
Modified:
webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?view=diff&rev=553438&r1=553437&r2=553438
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java Thu Jul 5 02:39:25 2007
@@ -729,7 +729,8 @@
String targetNamespace = schemaTypeName.getNamespaceURI();
// if the current schema has the same namespace we use it
- if (currentSchema.getTargetNamespace().equals(targetNamespace)){
+ if ((currentSchema.getTargetNamespace() != null) &&
+ currentSchema.getTargetNamespace().equals(targetNamespace)){
return currentSchema;
}
Object loadedSchema = loadedSchemaMap.get(targetNamespace);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org