ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r366090 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java
Date Thu, 05 Jan 2006 05:51:59 GMT
Author: dims
Date: Wed Jan  4 21:51:57 2006
New Revision: 366090

URL: http://svn.apache.org/viewcvs?rev=366090&view=rev
Log:
protect from NPE's

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java?rev=366090&r1=366089&r2=366090&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java
Wed Jan  4 21:51:57 2006
@@ -27,9 +27,14 @@
         if (packageName == null || URLProcessor.DEFAULT_PACKAGE.equals(packageName)) {
             WSDLBinding binding = configuration.getWom().getBinding(
                     AxisBindingBuilder.AXIS_BINDING_QNAME);
-            String temp = binding.getBoundInterface().getName()
-                    .getNamespaceURI();
-            packageName = URLProcessor.makePackageName(temp);
+            if (binding != null &&
+                    binding.getBoundInterface() != null &&
+                    binding.getBoundInterface().getName() != null &&
+                    binding.getBoundInterface().getName().getNamespaceURI() != null) {
+                String temp = binding.getBoundInterface().getName()
+                        .getNamespaceURI();
+                packageName = URLProcessor.makePackageName(temp);
+            }
         }
 
         if (null == packageName || "".equals(packageName))



Mime
View raw message