SONARJAVA-193 Fix an NPE