Skip to content

Commit 1269324

Browse files
hansonrhansonr
authored andcommitted
SwingJS-site.zip update; Assets fix for missing item in zip file
1 parent 5820a2b commit 1269324

File tree

6 files changed

+5
-3
lines changed

6 files changed

+5
-3
lines changed
352 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210301062205
1+
20210321064238
352 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210301062205
1+
20210321064238
352 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/javajs/async/Assets.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,10 @@ private URL _getURLFromPath(String fullPath, boolean zipOnly) {
446446
if (fullPath.startsWith(sortedList[i])) {
447447
url = assetsByPath.get(sortedList[i]).getURL(fullPath);
448448
ZipEntry ze = findZipEntry(url);
449-
if (ze == null)
449+
if (ze == null) {
450+
url = null;
450451
break;
452+
}
451453
if (isJS) {
452454
jsutil.setURLBytes(url, jsutil.getZipBytes(ze));
453455
}

0 commit comments

Comments
 (0)