Skip to content

Commit

Permalink
Merge pull request #80 from PlasticSCM/1003547-fix-crash-on-prem
Browse files Browse the repository at this point in the history
Fix crash ArrayIndexOutOfBoundsException when opening a project hosted On Prem
  • Loading branch information
juliomaqueda committed May 26, 2023
2 parents 071745f + 1e4e6f5 commit 7274979
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static bool ParseWorkspaceInfo(TArray<FString>& InResults, FString& OutBranchNam
}

// Get workspace information, in the form "Branch /main@UE5PlasticPluginDev@localhost:8087"
// or "Branch /main@UE5PlasticPluginDev@test@cloud" (when connected directly to the cloud)
// or "Branch /main@UE5PlasticPluginDev@test@cloud" (when connected to the cloud)
// or "Branch /main@rep:UE5OpenWorldPerfTest@repserver:test@cloud"
// or "Changeset 1234@UE5PlasticPluginDev@test@cloud" (when the workspace is switched on a changeset instead of a branch)
static const FString BranchPrefix(TEXT("Branch "));
Expand Down Expand Up @@ -208,7 +208,7 @@ static bool ParseWorkspaceInfo(TArray<FString>& InResults, FString& OutBranchNam
OutServerUrl.RightChopInline(RepserverPrefix.Len());
}

if (WorkspaceInfos.Num() >= 3)
if (WorkspaceInfos.Num() > 3) // (when connected to the cloud)
{
OutServerUrl.Append(TEXT("@"));
OutServerUrl.Append(MoveTemp(WorkspaceInfos[3]));
Expand Down

0 comments on commit 7274979

Please sign in to comment.