AppleDash / SaneEconomy

Finally, a sane economy plugin for Bukkit.
https://www.spigotmc.org/resources/saneeconomy-simple-but-featureful-economy.26223/
GNU General Public License v3.0
19 stars 24 forks source link

NPE with SaneEconomyTransactionEvent #67

Closed ghost closed 6 years ago

ghost commented 7 years ago

Using latest version from Spigot.

[23:38:31 ERROR]: Could not pass event SaneEconomyTransactionEvent to SaneEconomy v0.13.0-SNAPSHOT
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-5695bca-53fccdf]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-5695bca-53fccdf]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at org.appledash.saneeconomy.economy.EconomyManager.transact(EconomyManager.java:171) [SaneEconomyCore.jar:?]
        at org.appledash.saneeconomy.vault.EconomySaneEconomy.transact(EconomySaneEconomy.java:281) [SaneEconomyCore.jar:?]
        at org.appledash.saneeconomy.vault.EconomySaneEconomy.depositPlayer(EconomySaneEconomy.java:169) [SaneEconomyCore.jar:?]
        at us.blockbox.currencydrops.MonsterKillRewardTask.run(MonsterKillRewardTask.java:47) [CurrencyDrops.jar:?]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot.jar:git-Spigot-5695bca-53fccdf]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.lang.NullPointerException: at index 0
        at com.google.common.collect.ObjectArrays.checkElementNotNull(ObjectArrays.java:236) ~[spigot.jar:git-Spigot-5695bca-53fccdf]
        at com.google.common.collect.ImmutableSet.construct(ImmutableSet.java:174) ~[spigot.jar:git-Spigot-5695bca-53fccdf]
        at com.google.common.collect.ImmutableSet.of(ImmutableSet.java:91) ~[spigot.jar:git-Spigot-5695bca-53fccdf]
        at org.appledash.saneeconomy.SaneEconomy$2.onTransaction(SaneEconomy.java:88) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91]
        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:302) ~[spigot.jar:git-Spigot-5695bca-53fccdf]
        ... 14 more

The same error happens with other plugins as well. The transaction still seems to complete properly.