Skip to content

Commit 254dade

Browse files
committed
Corrects J2sNative return from getResourceAsStream
1 parent b7e620f commit 254dade

File tree

1 file changed

+1
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/lang

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/java/lang/Class.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@ public InputStream getResourceAsStream(String name) {
24822482
/**
24832483
* @j2sNative
24842484
*
2485-
if (data == null || data == "error" || data.indexOf && data.indexOf("[Exception") == 0)
2485+
if (data == null || data == Boolean.FALSE || data == "error" || data.indexOf && data.indexOf("[Exception") == 0)
24862486
return null;
24872487
24882488
var bytes = (data.__BYTESIZE == 1 ? data : J2S._strToBytes(data));

0 commit comments

Comments
 (0)