SONARJAVA-122 Fix NPE