NullPointerException - Spamming Console
LadyCailinBot opened this issue ยท 3 comments
WORLDGUARD-3715 - Reported by crysis
I have absolutely no idea what is causing this NullPointer, everything was fine till I reloaded the server. Now its spamming the console, even after a restard | WorldGuard dev build or whatever. This gets spammed multiple times per seconds (10-20 times per second) which affects server performance for some reason.
As already said, no idea what I've did, it worked fine for days, now it started to spam :p
[23:34:37 ERROR]: Could not pass event UseBlockEvent to WorldGuard v6.1.2;e38d98d
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-c55900f-9af379f]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-c55900f-9af379f]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-c55900f-9af379f]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-c55900f-9af379f]
at com.sk89q.worldguard.bukkit.util.Events.fireAndTestCancel(Events.java:60) [WorldGuard.jar:?]
at com.sk89q.worldguard.bukkit.listener.debounce.legacy.AbstractEventDebounce.debounce(AbstractEventDebounce.java:56) [WorldGuard.jar:?]
at com.sk89q.worldguard.bukkit.listener.debounce.legacy.BlockEntityEventDebounce.debounce(BlockEntityEventDebounce.java:36) [WorldGuard.jar:?]
at com.sk89q.worldguard.bukkit.listener.EventAbstractionListener.onEntityInteract(EventAbstractionListener.java:427) [WorldGuard.jar:?]
at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-c55900f-9af379f]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-c55900f-9af379f]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-c55900f-9af379f]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.BlockPressurePlateWeighted.e(BlockPressurePlateWeighted.java:35) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:96) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.BlockPressurePlateAbstract.b(BlockPressurePlateAbstract.java:78) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.WorldServer.a(WorldServer.java:737) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.WorldServer.doTick(WorldServer.java:249) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:788) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:672) [spigot.jar:git-Spigot-c55900f-9af379f]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:571) [spigot.jar:git-Spigot-c55900f-9af379f]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.lang.NullPointerException
at com.sk89q.worldguard.domains.PlayerDomain.contains(PlayerDomain.java:148) ~[?:?]
at com.sk89q.worldguard.domains.DefaultDomain.contains(DefaultDomain.java:238) ~[?:?]
at com.sk89q.worldguard.protection.regions.ProtectedRegion.isOwner(ProtectedRegion.java:278) ~[?:?]
at com.sk89q.worldguard.LocalPlayer.getAssociation(LocalPlayer.java:102) ~[?:?]
at com.sk89q.worldguard.protection.FlagValueCalculator.getMembership(FlagValueCalculator.java:131) ~[?:?]
at com.sk89q.worldguard.protection.FlagValueCalculator.queryAllValues(FlagValueCalculator.java:315) ~[?:?]
at com.sk89q.worldguard.protection.FlagValueCalculator.queryValue(FlagValueCalculator.java:220) ~[?:?]
at com.sk89q.worldguard.protection.FlagValueCalculator.queryState(FlagValueCalculator.java:167) ~[?:?]
at com.sk89q.worldguard.protection.RegionResultSet.queryState(RegionResultSet.java:97) ~[?:?]
at com.sk89q.worldguard.bukkit.RegionQuery.queryState(RegionQuery.java:268) ~[?:?]
at com.sk89q.worldguard.bukkit.RegionQuery.testBuild(RegionQuery.java:176) ~[?:?]
at com.sk89q.worldguard.bukkit.listener.RegionProtectionListener$3.apply(RegionProtectionListener.java:298) ~[?:?]
at com.sk89q.worldguard.bukkit.listener.RegionProtectionListener$3.apply(RegionProtectionListener.java:270) ~[?:?]
at com.sk89q.worldguard.bukkit.event.block.AbstractBlockEvent.filter(AbstractBlockEvent.java:105) ~[?:?]
at com.sk89q.worldguard.bukkit.event.block.UseBlockEvent.filter(UseBlockEvent.java:39) ~[?:?]
at com.sk89q.worldguard.bukkit.event.block.AbstractBlockEvent.filter(AbstractBlockEvent.java:134) ~[?:?]
at com.sk89q.worldguard.bukkit.event.block.UseBlockEvent.filter(UseBlockEvent.java:39) ~[?:?]
at com.sk89q.worldguard.bukkit.listener.RegionProtectionListener.onUseBlock(RegionProtectionListener.java:270) ~[?:?]
at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-c55900f-9af379f]
... 24 more
Comment by wizjany
the only reason that could possibly happen is if player.getName() was null, which is impossible for any player or even entity created by the server.
with that in mind, i can only guess that this is being caused by another plugin or something creating players or profiles with null names.
Comment by crysis
This also occured after disabling all other plugins except MultiVerse, Vault, WorldEdit and WorldGuard.
None of my plugins creates players or profiles except Citizens, but this is now disabled and WorldGurad is still throwing this error. All of these plugins also run on my other servers without any issues.