SONARJAVA-154 Fix NPE