You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2007/11/15 15:52:49 UTC
svn commit: r595321 - in /incubator/cxf/branches/2.0.x-fixes: ./
common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Author: dkulp
Date: Thu Nov 15 06:52:48 2007
New Revision: 595321
URL: http://svn.apache.org/viewvc?rev=595321&view=rev
Log:
Merged revisions 595189 via svnmerge from
https://svn.apache.org/repos/asf/incubator/cxf/trunk
........
r595189 | mmao | 2007-11-14 21:35:35 -0500 (Wed, 14 Nov 2007) | 3 lines
Fix NPE
........
Modified:
incubator/cxf/branches/2.0.x-fixes/ (props changed)
incubator/cxf/branches/2.0.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Propchange: incubator/cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: incubator/cxf/branches/2.0.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java?rev=595321&r1=595320&r2=595321&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java Thu Nov 15 06:52:48 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();