Skip to content
Browse files

making sure null columns gets a proper default value

  • Loading branch information...
1 parent 3a2ce28 commit 06e44d0e3d8dbe5fc72860ee9c46bad445638566 @edweip3 committed Oct 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Types/CassandraObjectConverter.cs
View
4 src/Types/CassandraObjectConverter.cs
@@ -52,6 +52,10 @@ public virtual byte[] ToBigEndian(T value)
public virtual T FromBigEndian(byte[] value)
{
+ if (value == null)
+ {
+ return default(T);
+ }
var bytes = ConvertEndian(value);
var obj = ConvertFromInternal(bytes);
return obj;

0 comments on commit 06e44d0

Please sign in to comment.
Something went wrong with that request. Please try again.