1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

Various ArgumentNullExceptions added

This commit is contained in:
lidgren
2010-07-26 07:48:10 +00:00
parent bbeb7dfb2a
commit 494cc7acee
5 changed files with 49 additions and 1 deletions

View File

@@ -73,6 +73,9 @@ namespace Lidgren.Network
/// </summary>
public void ReadAllProperties(object target, BindingFlags flags)
{
if (target == null)
throw new ArgumentNullException("target");
if (target == null)
return;
Type tp = target.GetType();