CommandHelper

CommandHelper

46.5k Downloads

Stacktrace with array_insert()

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-2783 - Reported by Hekta

array_insert(@array, @v, 3)
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.2-R0.2-SNAPSHOT; CommandHelper version: 3.3.1-SNAPSHOT:2349-cdce8f1,master. Here's the stacktrace:
java.lang.IndexOutOfBoundsException: Index: 3, Size: 2
	at java.util.ArrayList.rangeCheckForAdd(Unknown Source)
	at java.util.ArrayList.add(Unknown Source)
	at com.laytonsmith.core.constructs.CArray.push(CArray.java:224)
	at com.laytonsmith.core.functions.ArrayHandling$array_insert.exec(ArrayHandling.java:445)
	at com.laytonsmith.core.Script.eval(Script.java:301)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.Script.seval(Script.java:211)
	at com.laytonsmith.core.functions.Meta$eval.execs(Meta.java:411)
	at com.laytonsmith.core.Script.eval(Script.java:257)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
	at com.laytonsmith.core.constructs.CClosure.execute(CClosure.java:142)
	at com.laytonsmith.core.functions.DataHandling$execute.exec(DataHandling.java:2366)
	at com.laytonsmith.core.Script.eval(Script.java:301)
	at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:379)
	at com.laytonsmith.core.Script.eval(Script.java:257)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.Script.seval(Script.java:211)
	at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:384)
	at com.laytonsmith.core.Script.eval(Script.java:257)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.Procedure.execute(Procedure.java:179)
	at com.laytonsmith.core.Procedure.cexecute(Procedure.java:149)
	at com.laytonsmith.core.Script.eval(Script.java:238)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:379)
	at com.laytonsmith.core.Script.eval(Script.java:257)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
	at com.laytonsmith.core.Script.run(Script.java:165)
	at com.laytonsmith.core.events.AbstractEvent.execute(AbstractEvent.java:70)
	at com.laytonsmith.core.events.BoundEvent.execute(BoundEvent.java:302)
	at com.laytonsmith.core.events.BoundEvent.trigger(BoundEvent.java:261)
	at com.laytonsmith.core.events.EventUtils.FireListeners(EventUtils.java:205)
	at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:193)
	at com.laytonsmith.chadvanced.events.ServerCommand.triggerServerCommand(ServerCommand.java:31)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.laytonsmith.core.events.EventUtils.TriggerExternal(EventUtils.java:267)
	at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:33)
	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
	at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:258)
	at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:227)
	at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
	at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
	at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)```
commented

Comment by LadyCailin

Fixed in next build.