SONARJAVA-248 Fix the NPE