From ab7487872c5d735c19574d1bb17e1531778b9976 Mon Sep 17 00:00:00 2001 From: Sevastjan Date: Thu, 20 Jul 2023 05:31:16 +0300 Subject: [PATCH] [FIX] ArrayIndexOutOfBoundsException if xorConfict is empty --- .../pro/gravit/launcher/profiles/optional/OptionalView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java index 33362f03..ec9fe859 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java @@ -165,7 +165,7 @@ public void disable(OptionalFile file, BiConsumer callbac } } } - if (file.xorConflict != null) { + if (file.xorConflict != null && file.xorConflict.length != 0) { if (Arrays.stream(file.xorConflict).noneMatch(this::isEnabled)) { enable(file.xorConflict[0], false, callback); }