aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2022-11-03 18:17:11 +0000
committerTheKodeToad <TheKodeToad@proton.me>2022-11-08 16:37:00 +0000
commit5912ef3b452b2c28693630249052fe23c790f6fb (patch)
tree479dbe3b35ceea84ed3e73aaf640e8e77ce00cb7 /libraries
parent9931c9a286c1746c1fb290da50ab31c9d7c7d228 (diff)
downloadPrismLauncher-5912ef3b452b2c28693630249052fe23c790f6fb.tar.gz
PrismLauncher-5912ef3b452b2c28693630249052fe23c790f6fb.tar.bz2
PrismLauncher-5912ef3b452b2c28693630249052fe23c790f6fb.zip
Just ignore empty lines
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/launcher/org/prismlauncher/EntryPoint.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/launcher/org/prismlauncher/EntryPoint.java b/libraries/launcher/org/prismlauncher/EntryPoint.java
index 36831179..06c6c79c 100644
--- a/libraries/launcher/org/prismlauncher/EntryPoint.java
+++ b/libraries/launcher/org/prismlauncher/EntryPoint.java
@@ -87,8 +87,8 @@ public final class EntryPoint {
private static PreLaunchAction parseLine(String input, Parameters params) throws ParseException
{
- if (input.isEmpty()) // TODO: 2022-11-01 Should we just ignore this?
- throw new ParseException("Unexpected empty string! You should not pass empty newlines to stdin.");
+ if (input.isEmpty())
+ return PreLaunchAction.PROCEED;
if ("launch".equalsIgnoreCase(input))
return PreLaunchAction.LAUNCH;