ArrayIndexOutOfBoundsException when calling armor.getScriptPackage().getScript(scriptName)

Issue #18 resolved
Qotsafan created an issue

(armor is just an ARMO record I'm calling it upon, scriptName is the name of the script as String)

I always get a ArrayIndexOutOfBoundsException when calling armor.getScriptPackage().getScript(scriptName) (I'm using SkyProc Dist v2.2.0.6 fixed)

Here the important part from the error message in my logfiles:

[EXCEPTION] java.lang.ArrayIndexOutOfBoundsException: -1

at java.util.ArrayList.elementData(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at skyproc.ScriptPackage.getScript(ScriptPackage.java:147)

at skyproc.ScriptPackage.getScript(ScriptPackage.java:136)

Comments (4)

  1. Log in to comment