Skip to content

MCore / Factions Progressbar bug #107

Closed
Pinkii- opened this Issue Mar 18, 2014 · 1 comment

2 participants

@Pinkii-
Pinkii- commented Mar 18, 2014

When the Faction plugin try to display the Power of a player that have a maximum of 0 power, i think that a division by zero is occurred, and the render of the Progressbar throw an exception.

Here is the exception:

org.bukkit.command.CommandException: Unhandled exception executing 'f p Pinkiib' in com.massivecraft.mcore.cmd.MCoreBukkitCommand(f)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:179) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:683) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:670) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
Caused by: java.lang.NullPointerException
at java.lang.String.replace(String.java:2180) ~[?:1.7.0_51]
at com.massivecraft.mcore.Progressbar.render(Progressbar.java:132) ~[?:?]
at com.massivecraft.mcore.Progressbar.render(Progressbar.java:107) ~[?:?]
at com.massivecraft.factions.cmd.CmdFactionsPlayer.perform(CmdFactionsPlayer.java:51) ~[?:?]
at com.massivecraft.mcore.cmd.MCommand.execute(MCommand.java:242) ~[?:?]
at com.massivecraft.mcore.cmd.MCommand.execute(MCommand.java:234) ~[?:?]
at com.massivecraft.mcore.cmd.MCommand.execute(MCommand.java:249) ~[?:?]
at com.massivecraft.mcore.cmd.MCoreBukkitCommand.execute(MCoreBukkitCommand.java:66) ~[?:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:175) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
... 7 more

@oloflarsson
MassiveCraft member

This should be fixed now.

@oloflarsson oloflarsson closed this Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.