axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wood...@apache.org
Subject svn commit: r818456 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
Date Thu, 24 Sep 2009 12:14:17 GMT
Author: woodroy
Date: Thu Sep 24 12:14:16 2009
New Revision: 818456

URL: http://svn.apache.org/viewvc?rev=818456&view=rev
Log:
Handle null pointer string for service hierarchy

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java?rev=818456&r1=818455&r2=818456&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
Thu Sep 24 12:14:16 2009
@@ -65,6 +65,11 @@
         // Get the hierarchical path of the service
         String serviceHierarchy = Utils.getServiceHierarchy(deploymentFileData.getAbsolutePath(),

                 this.directory);
+
+        if (serviceHierarchy == null){
+            serviceHierarchy = "";
+        }
+        
         try {
             String extension = DeploymentFileData.getFileExtension(deploymentFileData.getName());
             if ("class".equals(extension)) {
@@ -346,6 +351,11 @@
     public void unDeploy(String fileName) {
         //find the hierarchical part of the service group name
         String serviceHierarchy = Utils.getServiceHierarchy(fileName, this.directory);
+        
+        if (serviceHierarchy == null){
+            serviceHierarchy = "";
+        }
+        
         fileName = Utils.getShortFileName(fileName);
         if (fileName.endsWith(".class")) {
             String className = fileName.replaceAll(".class", "");



Mime
View raw message