Fixed exception when not using -dir and build id unknown.

This commit is contained in:
Nicholas Hastings committed 2013-09-16 15:58:50 -04:00
1 parent cfc95d3f57
commit 581ed16fa6
1 file changed
+2 -2
+2 -2
View File
@@ -193,12 +193,12 @@ namespace DepotDownloader
KeyValue branches = depots["branches"];
KeyValue node = branches[branch];
if (node == null)
if (node == KeyValue.Invalid)
return 0;
KeyValue buildid = node["buildid"];
if (buildid == null)
if (buildid == KeyValue.Invalid)
return 0;
return uint.Parse(buildid.Value);