Exception in thread "main" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 20
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:458)
at de.ipbhalle.metfraglib.parameter.Constants.getIonisationChargeByNominalMassDifference(Constants.java:302)
at de.ipbhalle.metfraglib.parameter.SettingsChecker.checkIonModeSettings(SettingsChecker.java:154)
at de.ipbhalle.metfraglib.parameter.SettingsChecker.check(SettingsChecker.java:15)
at de.ipbhalle.metfrag.commandline.CommandLineTool.main(CommandLineTool.java:89)
Is there a way to guess what is the problem here ?
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 20 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:458) at de.ipbhalle.metfraglib.parameter.Constants.getIonisationChargeByNominalMassDifference(Constants.java:302) at de.ipbhalle.metfraglib.parameter.SettingsChecker.checkIonModeSettings(SettingsChecker.java:154) at de.ipbhalle.metfraglib.parameter.SettingsChecker.check(SettingsChecker.java:15) at de.ipbhalle.metfrag.commandline.CommandLineTool.main(CommandLineTool.java:89)