mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-03 22:30:31 +03:00
[FIX] ArrayIndexOutOfBoundsException if xorConfict is empty
This commit is contained in:
parent
aed383b1fb
commit
ab7487872c
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ public void disable(OptionalFile file, BiConsumer<OptionalFile, Boolean> 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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue