axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r630297 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
Date Fri, 22 Feb 2008 19:19:30 GMT
Author: dims
Date: Fri Feb 22 11:19:28 2008
New Revision: 630297

URL: http://svn.apache.org/viewvc?rev=630297&view=rev
Log:
Fix for AXIS2-3531 - NPE in AxisConfiguration

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java?rev=630297&r1=630296&r2=630297&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
Fri Feb 22 11:19:28 2008
@@ -675,7 +675,7 @@
      * @return The AxisModule having name=moduleName & version=moduleVersion
      */
     public AxisModule getModule(String moduleName, String moduleVersion) {
-        if (moduleVersion == null && moduleVersion.trim().length() == 0) {
+        if (moduleVersion == null || moduleVersion.trim().length() == 0) {
             moduleVersion = getDefaultModuleVersion(moduleName);
         }
         return (AxisModule) allModules.get(Utils.getModuleName(moduleName, moduleVersion));



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message