OSDN Git Service

#xxxxx 極稀にログ出力で例外発生してた問題を修正。
authoryyagi <yyagi.dtxmania@gmail.com>
Sat, 16 Oct 2021 18:31:03 +0000 (03:31 +0900)
committeryyagi <yyagi.dtxmania@gmail.com>
Sat, 16 Oct 2021 18:31:03 +0000 (03:31 +0900)
FDK/コード/00.共通/CTraceLogListener.cs

index e4be250..8c24a48 100644 (file)
@@ -90,7 +90,7 @@ namespace FDK
                        string userprofile = System.Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
 
                        // もしユーザー名の情報が出力に存在する場合は、伏字にする
-                       if (message.Contains(userprofile))
+                       if (message != null && message.Contains(userprofile))
                        {
                                char delimiter = System.IO.Path.DirectorySeparatorChar;
                                string[] u = userprofile.Split(delimiter);