SONARJAVA-273 Fix the NPE