From 3bd01e7034b1a323cefb828a93241000ae1288d4 Mon Sep 17 00:00:00 2001 From: xas Date: Tue, 11 Feb 2020 22:01:05 +0100 Subject: [PATCH] Fix ArgumentNullException when testing stm32 args --- source/nanoFirmwareFlasher/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nanoFirmwareFlasher/Program.cs b/source/nanoFirmwareFlasher/Program.cs index 51af29fe..54a7d8f9 100644 --- a/source/nanoFirmwareFlasher/Program.cs +++ b/source/nanoFirmwareFlasher/Program.cs @@ -192,7 +192,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o) else if ( o.ListDevicesInDfuMode || !string.IsNullOrEmpty(o.DfuDeviceId) || - o.DfuFile.Any()) + !string.IsNullOrEmpty(o.DfuFile)) { o.Platform = "stm32"; }