NPE Fix 

See https://github.com/m2e-code-quality/m2e-code-quality/issues/9 for further informations.