Command throwing null?

Discussion in 'Spigot Plugin Development' started by TheMasteredPanda, Jun 12, 2016.

  1. Aight so i'm having a brainfart moment, I can't figure out why this line is causing this to happen (I added the try/catch statement in after that stacktrace), how would I resolve this?

    Cheers <3<3,
  2. getTEF.getLang().getStringList("Messages.Help")
    It probably can't find the list.

    Try deleting your lang file and letting it regenerate.
  3. or getTEF == null
  4. The TownyEconomyFiles instance you passed to the TownyEconomyCommands constructor has not been called #Files() on. Therefore its lang field, which is returned by the #getLang() method was never initialized, and is null.
  5. Right ok, so I have initialized the classes incorrectly?