You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by to...@apache.org on 2004/08/09 17:31:45 UTC

cvs commit: ws-axis/java/src/org/apache/axis/components/net DefaultSocketFactory.java

tomj        2004/08/09 08:31:45

  Modified:    java/src/org/apache/axis/components/net
                        DefaultSocketFactory.java
  Log:
  Check attributes for null before using it.
  
  Revision  Changes    Path
  1.11      +1 -2      ws-axis/java/src/org/apache/axis/components/net/DefaultSocketFactory.java
  
  Index: DefaultSocketFactory.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/components/net/DefaultSocketFactory.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DefaultSocketFactory.java	25 Mar 2004 16:50:12 -0000	1.10
  +++ DefaultSocketFactory.java	9 Aug 2004 15:31:45 -0000	1.11
  @@ -24,7 +24,6 @@
   import java.net.Socket;
   import java.util.Hashtable;
   import java.util.StringTokenizer;
  -import java.io.IOException;
   import java.lang.reflect.Constructor;
   import java.lang.reflect.Method;
   
  @@ -71,7 +70,7 @@
               throws Exception {
   
           int timeout = 0;
  -        if(attributes.contains(CONNECT_TIMEOUT)) {
  +        if(attributes != null && attributes.contains(CONNECT_TIMEOUT)) {
               timeout = Integer.parseInt((String)attributes.get(CONNECT_TIMEOUT));
           }
           TransportClientProperties tcp = TransportClientPropertiesFactory.create("http");