Skip to content

Commit b3124d7

Browse files
committed
Fixed.
1 parent 9235ab5 commit b3124d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Persister/Collection/OneToManyPersister.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ protected override ICollectionInitializer CreateSubselectInitializer(
388388

389389
public override object GetElementByIndex(object key, object index, ISessionImplementor session, object owner)
390390
{
391-
return new CollectionElementLoader(this, Factory, session.EnabledFilters).LoadElement(session, key, IncrementIndexByBase(index));
391+
return new CollectionElementLoader(this, Factory, session.EnabledFilters).LoadElement(session, key, IncrementIndexByBase(index)) ?? NotFoundObject;
392392
}
393393
#region NH Specific
394394
protected override SqlCommandInfo GenerateIdentityInsertRowString()

0 commit comments

Comments
 (0)