CommandHelper

CommandHelper

46.5k Downloads

set_objective_display with null slot throws an error

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2686 - Reported by antruxit

When trying to set an objective into a null slot, this error is thrown:

java.lang.NullPointerException
at com.laytonsmith.abstraction.enums.EnumConvertor.getConcreteEnum(EnumConvertor.java:56)
at com.laytonsmith.abstraction.bukkit.BukkitMCObjective.setDisplaySlot(BukkitMCObjective.java:57)
at com.laytonsmith.core.functions.Scoreboards$set_objective_display.exec(Scoreboards.java:534)
at com.laytonsmith.core.Script.eval(Script.java:314)
at com.laytonsmith.core.Script.eval(Script.java:275)
at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:378)
at com.laytonsmith.core.Script.eval(Script.java:267)
at com.laytonsmith.core.functions.Exceptions$_try.execs(Exceptions.java:340)
at com.laytonsmith.core.Script.eval(Script.java:267)
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:164)
at com.laytonsmith.core.AliasCore.alias(AliasCore.java:137)
at com.laytonsmith.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:86)
at com.laytonsmith.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.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_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:957)
at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:883)
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:840)
at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

Server version: 1.5.2-R0.2-SNAPSHOT; CommandHelper version: 1499-de480c6.

commented

Comment by PseudoKnight

This doesn't seem to happen anymore. In any case, I can't recreate it.

commented

Comment by LadyCailin

Fixed with PR 273