From e7f2348ab32f3d90bcee4e6aa32346a7915e0d08 Mon Sep 17 00:00:00 2001 From: zhaodengke Date: Tue, 12 Nov 2024 17:39:36 +0800 Subject: [PATCH] Launcher: fix crash of command line --- .github/workflows/android.changelog | 2 -- Q3E/src/main/java/com/n0n3m4/q3e/karin/KidTechCommand.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/android.changelog b/.github/workflows/android.changelog index df660935f..e69de29bb 100644 --- a/.github/workflows/android.changelog +++ b/.github/workflows/android.changelog @@ -1,2 +0,0 @@ - -2 diff --git a/Q3E/src/main/java/com/n0n3m4/q3e/karin/KidTechCommand.java b/Q3E/src/main/java/com/n0n3m4/q3e/karin/KidTechCommand.java index ff441e5f6..e2fdc76fd 100644 --- a/Q3E/src/main/java/com/n0n3m4/q3e/karin/KidTechCommand.java +++ b/Q3E/src/main/java/com/n0n3m4/q3e/karin/KidTechCommand.java @@ -623,7 +623,7 @@ private static String SkipBlank(String str, int start) private static String ReadWord(String str, int start) { - if(str.charAt(start) == '\"') + if(start < str.length() && str.charAt(start) == '\"') { return ReadWordWithQuotes(str, start); }