Java dies with NullPointerException during comple of .ino file

It is an expected error. It's a normal error when you forget to declare a variable. It's not the same. In that case, the IDE continues to run. In my case, the IDE is hung and doesn't respond. I think it's a fatal Java error.

Jim