SONARJAVA-438 Fix NPE