fix possible (but highly unlikely) null assignment

found by ReSharper
This commit is contained in:
Sean Kaim
2017-03-05 19:45:33 -05:00
parent 0d0bee674d
commit d34ad62c8a

View File

@@ -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;
}