Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when trying to access undefined global variable #366

Closed
RiledUpCrow opened this issue Jun 24, 2016 · 1 comment
Closed

NPE when trying to access undefined global variable #366

RiledUpCrow opened this issue Jun 24, 2016 · 1 comment
Labels
Bug A bug in the code or in a documentation. Confirmed Something is confimed.
Milestone

Comments

@RiledUpCrow
Copy link
Contributor

Similar to this:

[18:44:43 ERROR]: [BetonQuest] Variable lever not defined in package default
[18:44:43 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'q' in plugin BetonQuest v1.9-dev
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:645) ~[spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.PlayerConnection.handleCommand(PlayerConnection.java:1350) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1185) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_91]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_91]
    at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
Caused by: java.lang.NullPointerException
    at java.lang.String.replace(Unknown Source) ~[?:1.8.0_91]
    at pl.betoncraft.betonquest.config.Config.getMessage(Config.java:275) ~[?:?]
    at pl.betoncraft.betonquest.config.Config.sendMessage(Config.java:479) ~[?:?]
    at pl.betoncraft.betonquest.config.Config.sendMessage(Config.java:433) ~[?:?]
    at pl.betoncraft.betonquest.commands.QuestCommand.sendMessage(QuestCommand.java:1182) ~[?:?]
    at pl.betoncraft.betonquest.commands.QuestCommand.handleEvents(QuestCommand.java:653) ~[?:?]
    at pl.betoncraft.betonquest.commands.QuestCommand.onCommand(QuestCommand.java:102) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.9.2.jar:git-Spigot-e000104-4cb3258]
    ... 15 more
@RiledUpCrow RiledUpCrow added the Confirmed Something is confimed. label Jun 24, 2016
@RiledUpCrow RiledUpCrow added this to the 1.9 version milestone Jun 24, 2016
@RiledUpCrow
Copy link
Contributor Author

It seems fixed in fff3ac7

@RiledUpCrow RiledUpCrow added the Bug A bug in the code or in a documentation. label Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the code or in a documentation. Confirmed Something is confimed.
Projects
None yet
Development

No branches or pull requests

1 participant