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

pull/8/head
Nicholas Hastings 12 years ago
parent cfc95d3f57
commit 581ed16fa6

@ -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);

Loading…
Cancel
Save