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 2008/10/31 09:34:29 UTC
svn commit: r709366 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JavaPrettyPrinterExtension.java
Author: amilas
Date: Fri Oct 31 01:34:29 2008
New Revision: 709366
URL: http://svn.apache.org/viewvc?rev=709366&view=rev
Log:
Added a null check to fix AXIS2-4107
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JavaPrettyPrinterExtension.java
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JavaPrettyPrinterExtension.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JavaPrettyPrinterExtension.java?rev=709366&r1=709365&r2=709366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JavaPrettyPrinterExtension.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JavaPrettyPrinterExtension.java Fri Oct 31 01:34:29 2008
@@ -47,8 +47,10 @@
prettifyFile(file);
} else if (file.isDirectory()) {
File[] childFiles = file.listFiles();
- for (int i = 0; i < childFiles.length; i++) {
- prettify(childFiles[i], configuration);
+ if (childFiles != null) {
+ for (int i = 0; i < childFiles.length; i++) {
+ prettify(childFiles[i], configuration);
+ }
}
}
}