Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix for issue #75: making sure null columns gets a proper default value #78

Merged
merged 1 commit into from

2 participants

@edweip3

No description provided.

@nberardi nberardi merged commit 763eae6 into from
@nberardi nberardi was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2012
  1. @edweip3
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.