Skip to content

Commit

Permalink
Update MovieHub.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbobaylor committed May 1, 2023
1 parent aa6852e commit 6f97064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrailerDownloader/SignalRHubs/MovieHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void GetMovieDirectories(string directoryPath)
if (Directory.GetFiles(directoryPath).Length == 0)
{
string[] subDirectories = Directory.GetDirectories(directoryPath);
if (Directory.GetFiles(subDirectories.FirstOrDefault()).Length == 0)
if (Directory.GetFiles(subDirectories.FirstOrDefault() ?? string.Empty).Length == 0)
{
foreach (string directory in subDirectories)
{
Expand Down

0 comments on commit 6f97064

Please sign in to comment.