mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: determinePackageVersion throw exception in ide env
This commit is contained in:
parent
7eea92bfc7
commit
74358bca8d
@ -44,7 +44,7 @@ public class JavaUtils {
|
||||
}
|
||||
final File file = new File(codeSourceLocation.toURI());
|
||||
// idea 场景,查找版本失败
|
||||
if (file.isDirectory()) {
|
||||
if (!file.exists() || file.isDirectory()) {
|
||||
return "UNKNOWN";
|
||||
}
|
||||
try (JarFile jarFile = new JarFile(file)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user