diff --git a/ICD.Common.Utils/EventArguments/TcpReceiveEventArgs.cs b/ICD.Common.Utils/EventArguments/TcpReceiveEventArgs.cs index 4683109..b6ad35a 100644 --- a/ICD.Common.Utils/EventArguments/TcpReceiveEventArgs.cs +++ b/ICD.Common.Utils/EventArguments/TcpReceiveEventArgs.cs @@ -19,6 +19,9 @@ namespace ICD.Common.Utils.EventArguments /// public TcpReceiveEventArgs(uint clientId, IEnumerable data) { + if (data == null) + throw new ArgumentNullException("data"); + m_ClientId = clientId; m_Data = StringUtils.ToString(data); } @@ -31,6 +34,9 @@ namespace ICD.Common.Utils.EventArguments /// public TcpReceiveEventArgs(uint clientId, IEnumerable data, int length) { + if (data == null) + throw new ArgumentNullException("data"); + m_ClientId = clientId; m_Data = StringUtils.ToString(data, length); }