Skip to content

Commit 94637b4

Browse files
author
zhourenjian
committed
Fixed a NPE bug
1 parent f91c29d commit 94637b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sources/net.sf.j2s.lib/src/net/sf/j2s/lib/providers/JavaRuntimeJSProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public boolean accept(File pathname) {
120120
}
121121
}
122122
*/
123+
if (files == null) {
124+
return new String[0][];
125+
}
123126
String[][] list = new String[1][];
124127
list[0] = new String[files.length];
125128
for (int i = 0; i < files.length; i++) {

0 commit comments

Comments
 (0)