SONARJAVA-211 Fix the NPE