Catching a possible NPE on linux systems that are caused by a bug in the java runtime.

For further information: JDK-6322854
Merge pull request #265 from mkaring/1.4

Catching a possible NPE on linux systems