Java dies with NullPointerException during comple of .ino file

One time it threw a Null Pointer Exception but didn't abort or hang the IDE. Another time it gave me this message:
Exception in thread "AWT-EventQueue-0" no matching function for call to 'Revent::bindCallback(void (&)())'