From 470c899400b2d50fde80695ca137f8fe7c1ca8f1 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 14 Dec 2021 11:43:04 +0100 Subject: [PATCH] EDMIService: Make GetVirtualPath return nothing if not virtual path was configured --- .../Methods/GlobalIndexer/ImportFile/ImportFileMethod.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service.EDMIService/Methods/GlobalIndexer/ImportFile/ImportFileMethod.vb b/Service.EDMIService/Methods/GlobalIndexer/ImportFile/ImportFileMethod.vb index a81f029a..040ce527 100644 --- a/Service.EDMIService/Methods/GlobalIndexer/ImportFile/ImportFileMethod.vb +++ b/Service.EDMIService/Methods/GlobalIndexer/ImportFile/ImportFileMethod.vb @@ -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