cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r786663 - /cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java
Date Fri, 19 Jun 2009 20:50:40 GMT
Author: dkulp
Date: Fri Jun 19 20:50:40 2009
New Revision: 786663

URL: http://svn.apache.org/viewvc?rev=786663&view=rev
Log:
Fix for NPE

Modified:
    cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java

Modified: cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java?rev=786663&r1=786662&r2=786663&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java
(original)
+++ cxf/branches/2.1.x-fixes/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java
Fri Jun 19 20:50:40 2009
@@ -117,6 +117,9 @@
 
     public void setElement(Element element) {
         this.element = element;        
+        if (element == null) { 
+            return;
+        }
         String form = element.getAttribute("elementFormDefault");
         if ((form != null) && form.equals("qualified")) {
             isElementQualified = true;



Mime
View raw message