cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevend...@apache.org
Subject svn commit: r888847 - /cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/util/URLConnectionUtils.java
Date Wed, 09 Dec 2009 15:50:11 GMT
Author: stevendolg
Date: Wed Dec  9 15:50:11 2009
New Revision: 888847

URL: http://svn.apache.org/viewvc?rev=888847&view=rev
Log:
COCOON3-46

Modified:
    cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/util/URLConnectionUtils.java

Modified: cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/util/URLConnectionUtils.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/util/URLConnectionUtils.java?rev=888847&r1=888846&r2=888847&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/util/URLConnectionUtils.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/util/URLConnectionUtils.java
Wed Dec  9 15:50:11 2009
@@ -34,6 +34,10 @@
      * @param urlConnection {@link URLConnection} to be closed.
      */
     public static void closeQuietly(URLConnection urlConnection) {
+        if (urlConnection == null) {
+            return;
+        }
+    	
         if (urlConnection.getDoInput()) {
             InputStream inputStream = null;
             try {



Mime
View raw message