SONAR-5209 Use longName when path is null