Skip to content

Commit

Permalink
Merge pull request dnSpy#1531 from HoLLy-HaCKeR/fix-compiler-warning
Browse files Browse the repository at this point in the history
Fix nullability warning
  • Loading branch information
wtfsck authored Jul 17, 2020
2 parents e1b96bd + 1e85702 commit 7241a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dnSpy/dnSpy/MainApp/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ Assembly[] GetAssemblies() {
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
Expand Down
1 change: 1 addition & 0 deletions dnSpy/dnSpy/MainApp/AppCommandLineArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public AppCommandLineArgs(string[] args) {
ShowStartupTime = false;
DebugAttachPid = 0;
DebugAttachProcess = string.Empty;
ExtraExtensionDirectory = string.Empty;

bool canParseCommands = true;
for (int i = 0; i < args.Length; i++) {
Expand Down

0 comments on commit 7241a9f

Please sign in to comment.