From 59f1f1bf22d8df16466a081b4921683a551a80ce Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 6 May 2020 17:22:59 +0200 Subject: [PATCH] code cleanup --- Main.java | 3 +++ supported/E621.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Main.java b/Main.java index 2e8b6d1..9d9592e 100644 --- a/Main.java +++ b/Main.java @@ -126,6 +126,9 @@ public class Main { int exitCode = 0; for (int i = 0; exitCode == 0 && i < args.length; i++) { + if (args[i] == null) + continue; + // Action (--) handling: if (!noMoreActions && args[i].startsWith("--")) { if (args[i].equals("--")) { diff --git a/supported/E621.java b/supported/E621.java index dc7cb1b..adf8d28 100644 --- a/supported/E621.java +++ b/supported/E621.java @@ -7,7 +7,6 @@ import java.net.URL; import java.net.URLDecoder; import java.util.AbstractMap; import java.util.ArrayList; -import java.util.Collections; import java.util.Date; import java.util.LinkedList; import java.util.List; -- 2.27.0