From d0a9bc9055167beb9951694934c0ddc7bc46d62f Mon Sep 17 00:00:00 2001 From: efrick Date: Thu, 8 Aug 2024 11:37:22 -0400 Subject: [PATCH] Fix null warning in MainForm --- MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MainForm.cs b/MainForm.cs index 6da352e..890bc0d 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -25,7 +25,7 @@ namespace PDF_Merge } public void SetPathLable() { - string sourcePath = ConfigurationManager.AppSettings["PDF-Path"]; + string sourcePath = ConfigurationManager.AppSettings["PDF-Path"] ?? ""; if (sourcePath != null) {