Permalink
Browse files

Fixed possible nullref when passing null as a parameter

  • Loading branch information...
1 parent 3a30895 commit b11d9431de3abdeaaf1257adce07534800537350 @subsonic subsonic committed Feb 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Massive.cs
View
@@ -38,10 +38,10 @@ public static class ObjectExtensions {
} else {
p.Value = item;
}
+ //from DataChomp
+ if (item.GetType() == typeof(string))
+ p.Size = 4000;
}
- //from DataChomp
- if (item.GetType() == typeof(string))
- p.Size = 4000;
cmd.Parameters.Add(p);
}
/// <summary>

0 comments on commit b11d943

Please sign in to comment.