cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r595189 - /incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Date Thu, 15 Nov 2007 02:35:36 GMT
Author: mmao
Date: Wed Nov 14 18:35:35 2007
New Revision: 595189

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


Modified:
    incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java

Modified: incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java?rev=595189&r1=595188&r2=595189&view=diff
==============================================================================
--- incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
(original)
+++ incubator/cxf/trunk/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Wed Nov 14 18:35:35 2007
@@ -83,7 +83,9 @@
                 break;
             }
         }
-
+        if (fClass == null) {
+            return false;
+        }
         for (FieldOutline f : fClass.getDeclaredFields()) {
             if (f.getPropertyInfo().getSchemaComponent() instanceof XSParticle) {
                 XSParticle particle = (XSParticle)f.getPropertyInfo().getSchemaComponent();



Mime
View raw message