From d34ad62c8aba379faee2b121334e81202fc9524d Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Sun, 5 Mar 2017 19:45:33 -0500 Subject: [PATCH] fix possible (but highly unlikely) null assignment found by ReSharper --- mRemoteV1/App/Logger.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/mRemoteV1/App/Logger.cs b/mRemoteV1/App/Logger.cs index 697c5f596..3413ddd57 100644 --- a/mRemoteV1/App/Logger.cs +++ b/mRemoteV1/App/Logger.cs @@ -54,6 +54,7 @@ namespace mRemoteNG.App var logFilePath = Application.StartupPath; #endif var logFileName = Path.ChangeExtension(Application.ProductName, ".log"); + if (logFileName == null) return "mRemoteNG.log"; var logFile = Path.Combine(logFilePath, logFileName); return logFile; }