From f2872ff40b0e12f36866fc7058788a7083b85b70 Mon Sep 17 00:00:00 2001 From: regevnoam1 Date: Mon, 19 Aug 2024 12:38:16 +0300 Subject: [PATCH] Find, null exception fix. --- RPCMon/App.config | 6 +++--- RPCMon/Form1.cs | 8 ++++---- RPCMon/RPCMon.csproj | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/RPCMon/App.config b/RPCMon/App.config index 731f6de..4bfa005 100644 --- a/RPCMon/App.config +++ b/RPCMon/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/RPCMon/Form1.cs b/RPCMon/Form1.cs index 107f641..620ebfa 100644 --- a/RPCMon/Form1.cs +++ b/RPCMon/Form1.cs @@ -369,10 +369,10 @@ namespace RPCMon { if (m_RPCDB.ContainsKey(i_UUID)) { - i_Row.Cells[(int)Utils.eColumnNames.Module].Value = m_RPCDB[i_UUID][RPC_DB_KEY_Module]; - i_Row.Cells[(int)Utils.eColumnNames.ModulePath].Value = m_RPCDB[i_UUID][RPC_DB_KEY_ModulePath]; - i_Row.Cells[(int)Utils.eColumnNames.ProceduresCount].Value = m_RPCDB[i_UUID][RPC_DB_KEY_ProceduresCount]; - i_Row.Cells[(int)Utils.eColumnNames.Service].Value = m_RPCDB[i_UUID][RPC_DB_KEY_Service]; + i_Row.Cells[(int)Utils.eColumnNames.Module].Value = m_RPCDB[i_UUID][RPC_DB_KEY_Module] ?? NA_STRING; + i_Row.Cells[(int)Utils.eColumnNames.ModulePath].Value = m_RPCDB[i_UUID][RPC_DB_KEY_ModulePath] ?? NA_STRING; + i_Row.Cells[(int)Utils.eColumnNames.ProceduresCount].Value = m_RPCDB[i_UUID][RPC_DB_KEY_ProceduresCount] ?? NA_STRING; + i_Row.Cells[(int)Utils.eColumnNames.Service].Value = m_RPCDB[i_UUID][RPC_DB_KEY_Service] ?? NA_STRING; } else { diff --git a/RPCMon/RPCMon.csproj b/RPCMon/RPCMon.csproj index 0395bc4..e911081 100644 --- a/RPCMon/RPCMon.csproj +++ b/RPCMon/RPCMon.csproj @@ -8,7 +8,7 @@ WinExe RPCMon RPCMon - v4.6.1 + v4.8 512 true true @@ -27,6 +27,7 @@ false false true + x64