Select throws an exception

Jun 20, 2012 at 9:49 AM

I have upgraded ORM from orm-97932 to the latest orm-98414 and now I get exception during Select. It appears at SqlCeDataStore_Select.cs line 255 (referenceFields is NULL). Version 97932 works correct in this case. Why does it happen?

 

255: if ((fillReferences) && (referenceFields.Length > 0))

// Exception details System.NullReferenceException was unhandled Message="NullReferenceException" StackTrace: at OpenNETCF.ORM.SqlCeDataStore.Select(Type objectType, IEnumerable`1 filters, Int32 fetchCount, Int32 firstRowOffset, Boolean fillReferences) at OpenNETCF.ORM.SQLStoreBase`1.Select(Type objectType, String searchFieldName, Object matchValue, Int32 fetchCount, Int32 firstRowOffset, Boolean fillReferences) at OpenNETCF.ORM.SQLStoreBase`1.Select[T](String searchFieldName, Object matchValue, Boolean fillReferences) at OpenNETCF.ORM.SQLStoreBase`1.Select[T](String searchFieldName, Object matchValue)
Coordinator
Jun 20, 2012 at 3:56 PM

Yeah, it looks like in my cut and paste haste, I missed a couple lines of important code.  I've fixed it and re-checked in.

Jun 21, 2012 at 7:52 AM

It works correct now. Thanks.