Help with a NPE?

Discussion in 'Plugin Development' started by cluter123, Mar 31, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    cluter123

    [​IMG]
    I'm saving the inventory of a player, and then loading it, yet it gives me this NPE. I'm not sure why the NPE is happening.

    Oh and whenever I reload the plugin, the plugin loads the items without any problem, but I don't want to reload the plugin every time they issue the command.

    -snip-
     
    Last edited: Apr 3, 2016
  2. Offline

    TheDiamond06

    https://bukkit.org/threads/how-to-r...ubleshoot-your-own-plugins-by-yourself.32457/
     
  3. Offline

    cluter123

  4. Offline

    TheDiamond06

    Well if you know how to read stack traces, why not go to the line that is having the error and debug variables there to see if one of them is null?
     
  5. Offline

    Dynamus

    Can you simplify for us? Like giving line 84 of your code. meh
     
  6. 94* :p

    @cluter123 Seeing how there's so many variables that could throw an NPE we need like 94 from your class "fds". (Capitalize at least the first letter of the class, it's basic OOP)
     
  7. Offline

    mcdorli

    Capitalizing the first letter of a class is not OOP, it's just a convention.
     
  8. Offline

    cluter123

    It's fine guys. I just reloaded the config each time I saved the inventories. Seemed to fix it.
     
Thread Status:
Not open for further replies.

Share This Page