Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #78 from edweip3/cql3-null-columns

fix for issue #75: making sure null columns gets a proper default value
  • Loading branch information...
commit 763eae67efb9f6057f4c53c90275b4ed5a04d9d7 2 parents 3a2ce28 + 06e44d0
@nberardi nberardi authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.