commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1696825 - /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java
Date Thu, 20 Aug 2015 17:25:34 GMT
Author: sebb
Date: Thu Aug 20 17:25:34 2015
New Revision: 1696825

URL: http://svn.apache.org/r1696825
Log:
Doh! obvious now

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java?rev=1696825&r1=1696824&r2=1696825&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java Thu
Aug 20 17:25:34 2015
@@ -190,8 +190,9 @@ public class ClassPath {
     public InputStream getInputStream( String name, String suffix ) throws IOException {
         InputStream is = null;
         try {
-            is = getClass().getClassLoader().getResourceAsStream(name + suffix);
+            is = getClass().getClassLoader().getResourceAsStream(name + suffix); // may return
null
         } catch (Exception e) {
+            // ignored
         }
         if (is != null) {
             return is;



Mime
View raw message