diff --git a/src/Luban.Client/Source/Program.cs b/src/Luban.Client/Source/Program.cs index 76a4c26..7a9ab75 100644 --- a/src/Luban.Client/Source/Program.cs +++ b/src/Luban.Client/Source/Program.cs @@ -156,7 +156,7 @@ Options: ThreadPool.SetMaxThreads(64, 10); - if (options.WatchDir.Length == 0) + if (options.WatchDir == null || options.WatchDir.Length == 0) { int exitCode = GenOnce(options, profile); profile.EndPhaseAndLog();