Skip to content

Commit ed8096a

Browse files
committed
修复JavaAgent启动失败的问题
1 parent 48a9971 commit ed8096a

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/github/balloonupdate/mcpatch/client

1 file changed

+1
-1
lines changed

src/main/java/com/github/balloonupdate/mcpatch/client/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void main(String[] args) throws Throwable {
5858
public static void premain(String agentArgs, Instrumentation ins) throws Throwable {
5959
boolean graphicsMode = Desktop.isDesktopSupported();
6060

61-
if (agentArgs.equals("windowless"))
61+
if (agentArgs != null && agentArgs.equals("windowless"))
6262
graphicsMode = false;
6363

6464
AppMain(graphicsMode, StartMethod.JavaAgent, true, false);

0 commit comments

Comments
 (0)