axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sami...@apache.org
Subject svn commit: r674175 - /webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java
Date Sat, 05 Jul 2008 11:00:03 GMT
Author: saminda
Date: Sat Jul  5 04:00:03 2008
New Revision: 674175

URL: http://svn.apache.org/viewvc?rev=674175&view=rev
Log:
correcting a false logic 

Modified:
    webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java

Modified: webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java?rev=674175&r1=674174&r2=674175&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java
(original)
+++ webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java
Sat Jul  5 04:00:03 2008
@@ -74,7 +74,7 @@
     private EndpointReference calculateEndpoint(String protocol, String serviceName, String
ip) {
         String portS = context.getProperty("org.osgi.service.http.port");
         int port = 80;
-        if (portS != null || portS.length() != 0) {
+        if (portS != null && portS.length() != 0) {
             try {
                 port = Integer.parseInt(portS);
             } catch (NumberFormatException e) {//ignore



Mime
View raw message