From 581ed16fa6816b056a317c9983eb438f83851da2 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 16 Sep 2013 15:58:50 -0400 Subject: [PATCH] Fixed exception when not using -dir and build id unknown. --- DepotDownloader/ContentDownloader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index d89a8bce..17f77214 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -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);