Console does not show the whole Error (NullPointerException)

Discussion in 'Spigot Plugin Development' started by byCaptain, Jun 11, 2017.

  1. Hello,

    i've got a problem: My plugin shows this exception:

    [​IMG]

    ... but it's very big and hard to find without lines or classes.

    Does anyone know, why there are no lines/classes displayed?

    Thanks
     
  2. run this: -XX:-OmitStackTraceInFastThrow
     
    • Like Like x 1
  3. You can temporarily cover anything new you added or changed in try/catch blocks.
     
  4. I believe this happens when the error is thrown repeatedly to prevent extreme spam. Try looking at the console when the error starts and then stop the server.
     
  5. Why would you do that?
     
  6. To find out what line it is coming from to prevent the exception from happening.
     
  7. I would go crazy if I had to continuously wrap my newly written code in try/catch blocks and remove them afterwards :p Just see the first exception that is not hidden in the log file.
     
  8. Yeah, I just realized they were all within the same second, so that would happen :p