From dceed3a9a126231e3848dfe8723ebd05ced5ea06 Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Thu, 27 Jul 2017 15:03:21 -0600 Subject: [PATCH] Don't forget about anonymous users --- DepotDownloader/ContentDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index d5a920a2..27370a9b 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -340,7 +340,7 @@ namespace DepotDownloader Username = username, Password = password, ShouldRememberPassword = Config.RememberPassword, - LoginKey = ConfigStore.TheConfig.LoginKeys.ContainsKey(username) ? ConfigStore.TheConfig.LoginKeys[username] : null, + LoginKey = username != null && ConfigStore.TheConfig.LoginKeys.ContainsKey(username) ? ConfigStore.TheConfig.LoginKeys[username] : null, } );