Solved [1.8.8] java.lang.NullPointerException On startup

Discussion in 'Spigot Plugin Development' started by Moose1031, Aug 6, 2019.

Thread Status:
Not open for further replies.
  1. Error: https://pastebin.com/ngX6fNcA
    line 26 in CutClean: FileConfiguration config = plugin.getConfig();
    line 113 in main: getServer().getPluginManager().registerEvents(new CutClean(this), this);
     
  2. SteelPhoenix

    Moderator

    presumably, the plugin field in your CutClean class is null. You need to show more of your code though.
     
  3. SteelPhoenix

    Moderator

    yea you call plugin.getConfig() before plugin is initialized (so it's null)
     
  4. thanks for the help
     
Thread Status:
Not open for further replies.