chore: try to figure out why NPE thrown calling builder.start()

This commit is contained in:
huanghongxun
2021-04-23 01:01:51 +08:00
parent e91ec13dbd
commit 0aa0fa1b78

View File

@@ -301,6 +301,10 @@ public class DefaultLauncher extends Launcher {
// To guarantee that when failed to generate launch command line, we will not call pre-launch command
List<String> rawCommandLine = generateCommandLine(nativeFolder).asList();
if (rawCommandLine.stream().anyMatch(StringUtils::isBlank)) {
throw new IllegalStateException("Illegal command line " + rawCommandLine);
}
decompressNatives(nativeFolder);
File runDirectory = repository.getRunDirectory(version.getId());