harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822490 - /harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIServerSocketFactory.java
Date Tue, 06 Oct 2009 20:42:36 GMT
Author: tellison
Date: Tue Oct  6 20:42:36 2009
New Revision: 822490

URL: http://svn.apache.org/viewvc?rev=822490&view=rev
Log:
Cope with soc never being initialized.

Modified:
    harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIServerSocketFactory.java

Modified: harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIServerSocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIServerSocketFactory.java?rev=822490&r1=822489&r2=822490&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIServerSocketFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIServerSocketFactory.java
Tue Oct  6 20:42:36 2009
@@ -67,7 +67,9 @@
             throw new IllegalArgumentException(e);
         } finally {
             try {
-                soc.close();
+                if (soc != null) {
+                    soc.close();
+                }
             } catch (IOException e) {
             }
         }



Mime
View raw message