Skip to content

Commit b5d71e4

Browse files
hansonrhansonr
authored andcommitted
check for null inputstream
1 parent d8b2ba7 commit b5d71e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public static InputStream getCachedResourceAsStream(String name) {
215215
Object data = getCachedFileData(path);
216216
if (data == null) {
217217
stream = getResourceAsStream(name);
218-
data = /** @j2sNative stream.$in.buf ||*/null;
218+
data = /** @j2sNative stream && stream.$in.buf ||*/null;
219219
} else {
220220
stream = new BufferedInputStream(new ByteArrayInputStream((byte[]) data));
221221
}

0 commit comments

Comments
 (0)