Fix nullability warning

This commit is contained in:
HoLLy 2020-07-17 22:28:16 +02:00
parent e1b96bd774
commit 1e857026ac
2 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,7 @@ namespace dnSpy.MainApp {
Assembly[] LoadExtensionAssemblies() {
var dir = AppDirectories.BinDirectory;
var unsortedFiles = GetExtensionFiles(dir);
if (!(args.ExtraExtensionDirectory is null))
if (!string.IsNullOrEmpty(args.ExtraExtensionDirectory))
unsortedFiles = unsortedFiles.Concat(GetExtensionFiles(args.ExtraExtensionDirectory));
// Load the modules in a predictable order or multicore-JIT could stop recording. See

View File

@ -77,6 +77,7 @@ namespace dnSpy.MainApp {
ShowStartupTime = false;
DebugAttachPid = 0;
DebugAttachProcess = string.Empty;
ExtraExtensionDirectory = string.Empty;
bool canParseCommands = true;
for (int i = 0; i < args.Length; i++) {