CommandHelper

CommandHelper

46.5k Downloads

Stacktrace with chat()

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-2776 - Reported by Hekta

If chat() function is executed from console, the script throw a java exception instead of a CH exception.

2013-08-11 21:02:13 [SEVERE] Uh oh! You've found an error in CommandHelper. This is an error caused by your code, so you may be able to find a workaround, but is ultimately an error in CommandHelper itself. The line of code that caused the error was this:
chat('t')
on or around /home/serveur28/minecraft/plugins/CommandHelper/aliases.msa:1.
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.2-R0.1-SNAPSHOT; CommandHelper version: 1597-724c3e4. Here's the stacktrace:

java.lang.NullPointerException
at com.laytonsmith.core.functions.Echoes$chat.exec(Echoes.java:365)
at com.laytonsmith.core.Script.eval(Script.java:301)
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:398)
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.AliasCore.alias(AliasCore.java:137)
at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:41)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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

This will now throw a player offline exception. Use broadcast in that case (This should only happen from main.ms anyways.)