Java dies with NullPointerException during comple of .ino file

Is this an expected error caused by a problem in your sketch code?

It looks somewhat similar to the error output from this bug report:

I wonder if it's the same?