EDMIService: Make GetVirtualPath return nothing if not virtual path was configured

This commit is contained in:
Jonathan Jenne 2021-12-14 11:43:04 +01:00
parent cdd086389b
commit 470c899400

View File

@ -121,8 +121,8 @@ Namespace Methods.GlobalIndexer.ImportFile
Dim oAutoAttributeDict = Helpers.UserAttributesToDictionary(pAutoAttributes)
If pPathConvention Is Nothing OrElse pPathConvention = String.Empty Then
Logger.Warn("Virtual path template for File [{0}] was empty. Returning empty string.", pFileInfo.Name)
Return String.Empty
Logger.Warn("Virtual path template for File [{0}] was empty. Returning nothing.", pFileInfo.Name)
Return Nothing
End If