Catching a possible NPE on linux systems

This problem may be caused by a bug in the java runtime.

For further information: JDK-6322854