Skip to content

Commit

Permalink
fix: ContributorSpellCircleHandler doesn't catch `StringIndexOutOfB…
Browse files Browse the repository at this point in the history
…oundsException`

Fixes #798
  • Loading branch information
Kamefrede committed Nov 7, 2023
1 parent 0a192b4 commit 4018425
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void load(Properties props) {
try {
int[] values = Stream.of(value.split(",")).mapToInt(el -> Integer.parseInt(el.substring(2), 16)).toArray();
m.put(key, values);
} catch (NumberFormatException e) {
} catch (NumberFormatException | StringIndexOutOfBoundsException e) {
Psi.logger.error("Contributor " + key + " has an invalid hexcode!");
}
}
Expand Down

0 comments on commit 4018425

Please sign in to comment.