You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>bbox reload
[10:52:00 INFO]: Type command again within 10s to confirm
>bbox reload
[10:52:02 WARN]: [BentoBox] Task #23 for BentoBox v0.17.0-SNAPSHOT generated an exception
java.lang.NullPointerException: null
at world.bentobox.bentobox.managers.LocalesManager.get(LocalesManager.java:62) ~[?:?]
at world.bentobox.bentobox.managers.LocalesManager.get(LocalesManager.java:52) ~[?:?]
at world.bentobox.bentobox.api.user.User.getTranslation(User.java:232) ~[?:?]
at world.bentobox.bentobox.api.user.User.sendMessage(User.java:267) ~[?:?]
at world.bentobox.bentobox.commands.BentoBoxReloadCommand.reloadLocales(BentoBoxReloadCommand.java:42) ~[?:?]
at world.bentobox.bentobox.commands.BentoBoxReloadCommand.lambda$execute$0(BentoBoxReloadCommand.java:32) ~[?:?]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:391) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:893) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Steps to reproduce the behavior:
Run a clean install
Wait for the server to be fully loaded
Type /bbox reload, or /bbox v - to make sure it is working
Delete the locales folder
Type /bbox reload - NPE
Type /bbox v - NPE Note that typing /bbox v before /bbox reload will result in this command working fine (see Additionnal context.
Expected behavior
NPEs shouldn't happen. I was expecting the locales folder to be regenerated.
Server Information:
Database being used: YAML
OS: Windows 10 x64
Java Version: 8u192
BentoBox version: current with the develop branch (7dd06b9)
Other plugins? Plugins (5): LuckPerms, Vault, PlaceholderAPI, BentoBox, Essentials
Additionnal context
Here are the logs I got after deleting the locales folder. We can see that /bbox v works fine until I'm trying to reload BentoBox.
>bbox v
[10:58:22 INFO]: Bentobox version: 0.17.0-SNAPSHOT
[10:58:22 INFO]: Loaded Game Worlds:
[10:58:22 INFO]: BSkyBlock_world (BSkyBlock)
[10:58:22 INFO]: Loaded Add-Ons
[10:58:22 INFO]: BSkyBlock 0.5.0-SNAPSHOT
>bbox reload
[10:58:25 INFO]: Type command again within 10s to confirm
>bbox reload
[10:58:26 WARN]: [BentoBox] Task #20 for BentoBox v0.17.0-SNAPSHOT generated an exception
java.lang.NullPointerException: null
at world.bentobox.bentobox.managers.LocalesManager.get(LocalesManager.java:62) ~[?:?]
at world.bentobox.bentobox.managers.LocalesManager.get(LocalesManager.java:52) ~[?:?]
at world.bentobox.bentobox.api.user.User.getTranslation(User.java:232) ~[?:?]
at world.bentobox.bentobox.api.user.User.sendMessage(User.java:267) ~[?:?]
at world.bentobox.bentobox.commands.BentoBoxReloadCommand.reloadLocales(BentoBoxReloadCommand.java:42) ~[?:?]
at world.bentobox.bentobox.commands.BentoBoxReloadCommand.lambda$execute$0(BentoBoxReloadCommand.java:32) ~[?:?]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:391) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:893) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
>bbox v
[11:00:55 WARN]: Unexpected exception while parsing console command "bbox v"
org.bukkit.command.CommandException: Unhandled exception executing 'bbox v' in world.bentobox.bentobox.commands.BentoBoxCommand(bentobox)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146) ~[spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:702) ~[spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchServerCommand(CraftServer.java:687) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.DedicatedServer.aU(DedicatedServer.java:459) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:418) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: java.lang.NullPointerException
at world.bentobox.bentobox.managers.LocalesManager.get(LocalesManager.java:62) ~[?:?]
at world.bentobox.bentobox.managers.LocalesManager.get(LocalesManager.java:52) ~[?:?]
at world.bentobox.bentobox.api.user.User.getTranslation(User.java:232) ~[?:?]
at world.bentobox.bentobox.api.user.User.sendMessage(User.java:267) ~[?:?]
at world.bentobox.bentobox.commands.BentoBoxVersionCommand.execute(BentoBoxVersionCommand.java:31) ~[?:?]
at world.bentobox.bentobox.api.commands.CompositeCommand.execute(CompositeCommand.java:237) ~[?:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:139) ~[spigot-1.13.2.jar:git-Spigot-e769fe4-5f5a676]
... 7 more
The text was updated successfully, but these errors were encountered:
Description
Steps to reproduce the behavior:
/bbox reload
, or/bbox v
- to make sure it is workinglocales
folder/bbox reload
- NPE/bbox v
- NPENote that typing
/bbox v
before/bbox reload
will result in this command working fine (see Additionnal context.Expected behavior
NPEs shouldn't happen. I was expecting the locales folder to be regenerated.
Server Information:
Plugins (5): LuckPerms, Vault, PlaceholderAPI, BentoBox, Essentials
Additionnal context
Here are the logs I got after deleting the locales folder. We can see that
/bbox v
works fine until I'm trying to reload BentoBox.The text was updated successfully, but these errors were encountered: