Weird command error

Discussion in 'Spigot Plugin Development' started by Fang456, Apr 22, 2017.

  1. Please take the time to research proper DI, also try to make sure you're using override annotations.
    Code (Text):
    ChatColor.translateAlternateColorCodes('&', core.getcommandMessagesConfig().getString("website"));
    Something here is null, either getCommandMessagesConfig or the result of getString("website")

    EDIT: Typos..
     
  2. But it was working before?
     
  3. That's what the error message says, you probably modified something...
     
  4. When you read this and think Ugh, I need to work out what I modified....
     
  5. Or you could just think through which of those methods can return null and fix the issue.
     
  6. First you ask the config to return a String, a few lines later it is supposed to be a list of Strings. Just remove the line, you don't even use it.