Fixed issue with resolving project path

#jira UE-78201?
#rb na

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: andrew.grant
#ROBOMERGE-SOURCE: CL 7686869 in //UE4/Release-4.23/... via CL 7686874
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v388-7785529)

[CL 7808890 by andrew grant in Dev-Build branch]
This commit is contained in:
andrew grant
2019-08-06 12:52:19 -04:00
parent 9ddc9c6f3d
commit 3326010601

View File

@@ -233,13 +233,16 @@ namespace Gauntlet
}
else
{
ProjectPath = ProjectUtils.FindProjectFileFromName(Project);
if (ProjectPath == null)
if (!string.IsNullOrEmpty(Project))
{
throw new AutomationException("Could not find project file for {0}", Project);
ProjectPath = ProjectUtils.FindProjectFileFromName(Project);
if (ProjectPath == null)
{
throw new AutomationException("Could not find project file for {0}", Project);
}
Project = ProjectPath.GetFileNameWithoutExtension();
}
Project = ProjectPath.GetFileNameWithoutExtension();
}
if (string.IsNullOrEmpty(Sandbox))