[Solved] Can't figure out this NullPointerException

Discussion in 'Spigot Plugin Development' started by pramsing, May 5, 2015.

  1. Hey guys. I'm getting a NullPointerException I really can't figure out, I hope to get some help. :)
    I'm not gonna be providing a lot of code, as I don't think it's needed, though if it is needed, I'll ofcourse provide it.

    NullPointerException on line 128
    I've marked line 128 with //line 128

    ^Code that's being weird. I'll provide more if needed.
    Error from console: http://pastebin.com/VqeCNSec

    I've tried removing the if (message.contains), but then it gives an error on the sendMessage, so I'm really confused.

    Thanks. :)
  2. gigosaurus


    The config doesn't contain "Messages.Redeem.RedeemSuccess" and so message is being set to null.
    • Like Like x 1
  3. The file wasn't saved properly, though notepad++ said it was.
    Thank you very much. :p

    *Kinda embarrassed*