What is this error?

Discussion in 'Spigot Help' started by EthanRPro, May 31, 2016.

  1. I am unable to intentionally produce this error, I just keep seeing it randomly on my console. Any ideas?

    Code (Text):
    [19:49:22 WARN]: java.lang.NullPointerException
    [19:49:22 WARN]:        at sun.reflect.GeneratedMethodAccessor599.invoke(Unknown Source)
    [19:49:22 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [19:49:22 WARN]:        at java.lang.reflect.Method.invoke(Method.java:498)
    [19:49:22 WARN]:        at mkremins.fanciful.FancyMessage.itemTooltip(FancyMessage.java:304)
    [19:49:22 WARN]:        at com.leetzilantonis.deathmessage.listeners.DeathMessageListener.onPlayerKill(DeathMessageListener.java:113)
    [19:49:22 WARN]:        at sun.reflect.GeneratedMethodAccessor624.invoke(Unknown Source)
    [19:49:22 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [19:49:22 WARN]:        at java.lang.reflect.Method.invoke(Method.java:498)
    [19:49:22 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
    [19:49:22 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [19:49:22 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [19:49:22 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [19:49:22 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:382)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.EntityPlayer.die(EntityPlayer.java:417)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.EntityLiving.damageEntity(EntityLiving.java:811)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.EntityHuman.damageEntity(EntityHuman.java:800)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.EntityPlayer.damageEntity(EntityPlayer.java:496)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.EntityHuman.attack(EntityHuman.java:1001)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.EntityPlayer.attack(EntityPlayer.java:1063)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1328)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:52)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:11)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    [19:49:22 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [19:49:22 WARN]:        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657)
    [19:49:22 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560)
    [19:49:22 WARN]:        at java.lang.Thread.run(Thread.java:745)
     
     
  2. Go into your FancyMessage class and show us the code from line 304 (maybe some lines above and below line 304 as well).
     
  3. I don't know where or what 'FancyMessages' is lol. I don't think ive used it at all.
     
  4. How about "DeathMessageListener?"
     
  5. A value found here
    Code (Text):

    at com.leetzilantonis.deathmessage.listeners.DeathMessageListener.onPlayerKill(DeathMessageListener.java:113)
     
    -Line 113, specifically-

    is returning a null value, therefore giving an exception.

    • Have null condition checks so you won't get an exception
    • Make sure the value you are trying to get/return is not null and is actually outputting the correct value (i.e String, Integer, Boolean value..)