You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/10/30 12:05:55 UTC

svn commit: r469120 - in /webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema: SchemaCompiler.java i18n/resource.properties

Author: dims
Date: Mon Oct 30 03:05:54 2006
New Revision: 469120

URL: http://svn.apache.org/viewvc?view=rev&rev=469120
Log:
fix NPE

Modified:
    webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
    webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/i18n/resource.properties

Modified: webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?view=diff&rev=469120&r1=469119&r2=469120
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java (original)
+++ webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java Mon Oct 30 03:05:54 2006
@@ -1567,7 +1567,9 @@
                     }
                 }
 
-
+                if(referencedQName == null) {
+                    throw new SchemaCompilationException(SchemaCompilerMessages.getMessage("schema.emptyName"));
+                }
 
                 //register the occurence counts
                 metainfHolder.addMaxOccurs(referencedQName, elt.getMaxOccurs());

Modified: webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/i18n/resource.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/i18n/resource.properties?view=diff&rev=469120&r1=469119&r2=469120
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/i18n/resource.properties (original)
+++ webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/i18n/resource.properties Mon Oct 30 03:05:54 2006
@@ -24,6 +24,7 @@
 schema.elementNull=Null element encountered! Please check your schema!
 schema.referencedElementNotFound=The referenced element ''{0}'' was not found!
 schema.elementWithNoType=Could not find any schema type associated with the Element ''{0}''
+schema.emptyName=Missing name attribute! Please check your schema!
 ################## Options ###################################################
 schema.unsupportedvalue=Unsupported value!
 



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