when i run to
BranchHistoryTreeItem[][] TreeItem = vcs.GetBranchHistory(new ItemSpec[] { new
ItemSpec(teamProject.ServerItem, RecursionType.Full) }, LatestVersionSpec.Latest);
there are a issue “Object reference not set to an instance of an object.” but BranchHistoryTreeItem[][] has declared TreeItem…
Its not the
TreeItemwhich is null, it could bevcsorteamProjectwhich is null. Put a break point and hover overvcsorteamProjectand see which is null.