You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/20 19:25:34 UTC
svn commit: r1696825 -
/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java
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;