fix NPE when only one system libjfs was provided (#1508)

This commit is contained in:
tangyoupeng
2022-03-02 23:36:36 +08:00
committed by GitHub
parent d3a1b4f9ce
commit 59828aefaa

View File

@@ -536,7 +536,7 @@ public class JuiceFileSystemImpl extends FileSystem {
long soTime = conn.getLastModified();
if (res.getProtocol().equalsIgnoreCase("jar")) {
soTime = new JarFile(jarPath).getJarEntry("libjfs.so.gz")
soTime = new JarFile(jarPath).getJarEntry(resource)
.getLastModifiedTime()
.toMillis();
}