Skip to content

Commit 969d82d

Browse files
committed
fix: 修复版本文件夹内不存在jar文件时启动器可能意外报错的问题
1 parent b28d0ac commit 969d82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FCLCore/src/main/java/com/tungsten/fclcore/launch/DefaultLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private CommandBuilder generateCommandLine() throws IOException {
209209
File jar = repository.getVersionJar(version);
210210
if (!jar.exists() || !jar.isFile()) {
211211
String inherits = version.getInheritsFrom();
212-
if (!inherits.isEmpty()) {
212+
if (inherits != null && !inherits.isEmpty()) {
213213
jar = repository.getVersionJar(inherits);
214214
}
215215
}

0 commit comments

Comments
 (0)