cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1428524 - /cxf/trunk/api/src/main/java/org/apache/cxf/resource/ExtendedURIResolver.java
Date Thu, 03 Jan 2013 18:14:13 GMT
Author: dkulp
Date: Thu Jan  3 18:14:12 2013
New Revision: 1428524

URL: http://svn.apache.org/viewvc?rev=1428524&view=rev
Log:
[CXF-4727] Add an npe guard

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/resource/ExtendedURIResolver.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/resource/ExtendedURIResolver.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/resource/ExtendedURIResolver.java?rev=1428524&r1=1428523&r2=1428524&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/resource/ExtendedURIResolver.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/resource/ExtendedURIResolver.java Thu Jan 
3 18:14:12 2013
@@ -72,7 +72,9 @@ public class ExtendedURIResolver {
         while (!resourceOpened.isEmpty()) {
             try {
                 InputStream in = resourceOpened.pop();
-                in.close();
+                if (in != null) {
+                    in.close();
+                }
             } catch (IOException ioe) {
                 // move on...
             }



Mime
View raw message