Skip to content

Commit

Permalink
Merge pull request fluentcassandra#78 from edweip3/cql3-null-columns
Browse files Browse the repository at this point in the history
fix for issue fluentcassandra#75: making sure null columns gets a proper default value
  • Loading branch information
nberardi committed Oct 11, 2012
2 parents 3a2ce28 + 06e44d0 commit 763eae6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Types/CassandraObjectConverter.cs
Expand Up @@ -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;
Expand Down

0 comments on commit 763eae6

Please sign in to comment.