Skip to content

Commit

Permalink
- Fix null reference when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Jun 24, 2022
1 parent 4db985b commit 77521db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenDirectoryDownloader/DirectoryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static async Task<WebDirectory> ParseHtml(WebDirectory webDirectory, stri
}
}

if (OpenDirectoryIndexer.Session.Parameters.ContainsKey(Constants.GoogleDriveIndexType))
if (OpenDirectoryIndexer.Session is not null && OpenDirectoryIndexer.Session.Parameters.ContainsKey(Constants.GoogleDriveIndexType))
{
string googleDriveIndexType = OpenDirectoryIndexer.Session.Parameters[Constants.GoogleDriveIndexType];

Expand Down

0 comments on commit 77521db

Please sign in to comment.