Permalink
Browse files

Fix tests.

  • Loading branch information...
1 parent 6397a0f commit 93c2f2e5c8e34867e2be6337080a1b16470caccc @lanwin lanwin committed Sep 28, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 source/MongoDB/Configuration/Mapping/Model/CollectionMemberMap.cs
@@ -44,6 +44,10 @@ public CollectionMemberMap(string memberName, Type memberReturnType, Func<object
public override object GetValue(object instance)
{
var elements = _collectionAdapter.GetElementsFromCollection(base.GetValue(instance));
+
+ if(elements == null)
+ return null;
+
var list = new ArrayList();
foreach (var element in elements)

0 comments on commit 93c2f2e

Please sign in to comment.