CommandHelper

CommandHelper

46.5k Downloads

Stracktrace with string_append()

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-3031 - Reported by Nessiesson

Running string_append()or string_append('')
causes the following stacktrace to happen: [01:01:02 ERROR]: Uh oh! You've found an error in Core. This is an error caused while running your code, so you may be able to find a workaround, but is ultimately an error in Core itself. The line of code that caused the error was this: string_append() on or around Interpreter:1. Please report this error to the developers, and be sure to include the version numbers: Server version: 1.8-R0.1-SNAPSHOT; CommandHelper version: 3.3.1-SNAPSHOT; Loaded extensions and versions: CHDangerous (version 1.0.1); Core (version 3.3.1); SKCompat (version 1.0.0); CHAdvanced (version 1.0.0); CHVirtualChests (version 1.0.3); CHSpigot (version 1.2.3); CHIRC (version 0.0.1); Here's the stacktrace: java.lang.ArrayIndexOutOfBoundsException: 0 at com.laytonsmith.core.functions.StringHandling$string_append.exec(StringHandling.java:1623) at com.laytonsmith.core.Script.eval(Script.java:353) at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1908) at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1865) at com.laytonsmith.commandhelper.CommandHelperInterpreterListener.execute(CommandHelperInterpreterListener.java:170) at com.laytonsmith.commandhelper.CommandHelperInterpreterListener.textLine(CommandHelperInterpreterListener.java:131) at com.laytonsmith.commandhelper.CommandHelperInterpreterListener$1.run(CommandHelperInterpreterListener.java:70) at com.laytonsmith.abstraction.bukkit.BukkitConvertor$1.call(BukkitConvertor.java:309) at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftFuture.run(CraftFuture.java:89) at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:698) at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) at java.lang.Thread.run(Unknown Source)

This happens regardless of whether res_create_resource("STRING_BUILDER") has been called.

commented

Comment by LadyCailin

Fixed