Updated ResolvePathReference to also early-return when the path is empty. @gadams3 said this would be helpful to him.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
santorac
2021-11-16 17:30:33 -08:00
parent 7d48e8209c
commit 8b82452a1b
@@ -47,8 +47,8 @@ namespace AZ
AZStd::string ResolvePathReference(const AZStd::string& originatingSourceFilePath, const AZStd::string& referencedSourceFilePath)
{
// Prevents "second join parameter is an absolute path" warnings in StringFunc::Path::Join below
if (AZ::IO::PathView{referencedSourceFilePath}.IsAbsolute())
// The IsAbsolute part prevents "second join parameter is an absolute path" warnings in StringFunc::Path::Join below
if (referencedSourceFilePath.empty() || AZ::IO::PathView{referencedSourceFilePath}.IsAbsolute())
{
return referencedSourceFilePath;
}