Repository: HMCL-dev/HMCL (language: java)

Issue:
[Bug] rd-161348 无法启动
### 平台 | Platform

Arch Linux

### 问题描述 | Bug Description

正常下载、启动即可触发。

https://github.com/HMCL-dev/HMCL/blob/2f36506099e94b8cf4c0fce1fe77becd8a4bef5e/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java#L137-L140

https://github.com/HMCL-dev/HMCL/blob/2f36506099e94b8cf4c0fce1fe77becd8a4bef5e/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java#L137-L140

不是很懂 Java 的 fp，太困了也读不下去了

### 启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

```
[00:35:10] [org.jackhuang.hmcl.game.DefaultGameRepository.lambda$getGameVersion$0/WARNING] Cannot find out game version of rd-161348, primary jar: /home/skymkmk/.minecraft/versions/rd-161348/rd-161348.jar, jar exists: true
```

![Image](https://github.com/user-attachments/assets/dd9b5726-638a-4d74-bd11-9ae909059db5)

[rd-161348.json](https://github.com/user-attachments/files/18720665/rd-161348.json)


Discussion / hints:
无法复现，有 log 吗？

![Image](https://github.com/user-attachments/assets/864c1b8a-b922-45bf-bfd7-54c382dde409)
哦，这个问题只在开启了使用系统 GLFW/OpenAL 的情况下会出现。

Fix patch:
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/util/NativePatcher.java b/HMCL/src/main/java/org/jackhuang/hmcl/util/NativePatcher.java
index 8052493ee9..814064728e 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/util/NativePatcher.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/util/NativePatcher.java
@@ -83,7 +83,7 @@ public static Version patchNative(Version version, String gameVersion, JavaRunti
         final boolean useNativeOpenAL = settings.isUseNativeOpenAL();
 
         if (OperatingSystem.CURRENT_OS.isLinuxOrBSD() && (useNativeGLFW || useNativeOpenAL)
-                && GameVersionNumber.compare(gameVersion, "1.19") >= 0) {
+                && gameVersion != null && GameVersionNumber.compare(gameVersion, "1.19") >= 0) {
 
             version = version.setLibraries(version.getLibraries().stream()
                     .filter(library -> {


Test patch: