Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
455
NullReference Exception while calling the LoadCustomizations() to load the persistance data
posted

We are getting the following error message while Loading the persistance data.  This error is not occuring frequetly.  This is happening only at the time of loading a window.  After loading our window, if we call the same method it is working fine without any issues.

Please suggest the solution for the same.

Message: "Object reference not set to an instance of an object."

Source : "Infragistics3.Wpf.DataPresenter.v9.1"

Stack Trace:

"   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.HookInto(FieldLayout fieldLayout)\r\n   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.GetRecordFilters(FieldLayout fieldLayout, Boolean create)\r\n   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.HasActiveFilters(FieldLayout fieldLayout)\r\n   at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.HasActiveFiltersInAnyFieldLayout()\r\n   at Infragistics.Windows.DataPresenter.ViewableRecordCollection.EnsureFiltersEvaluated()\r\n   at Infragistics.Windows.DataPresenter.DataRecord.EnsureFiltersEvaluated()\r\n   at Infragistics.Windows.DataPresenter.Record.InternalIsFilteredOutHelper(Boolean verify)\r\n   at Infragistics.Windows.DataPresenter.Record.GetVisibilityResolved(Boolean verifyFiltering)\r\n   at Infragistics.Windows.DataPresenter.Record.get_VisibilityResolved()\r\n   at Infragistics.Windows.DataPresenter.Record.get_ScrollCountInternal()\r\n   at Infragistics.Windows.DataPresenter.UnsortedRecordSparseArray.GetItem(Int32 index, Boolean create, Boolean calledFromSortedManagerSparseArray, Boolean& newRowCreated)\r\n   at Infragistics.Windows.DataPresenter.UnsortedRecordSparseArray.ToArray(Boolean create)\r\n   at Infragistics.Windows.DataPresenter.RecordManager.VerifySort()\r\n   at Infragistics.Windows.DataPresenter.DataPresenterBase.OnProcessSortCriteria(FieldLayout fieldLayout)\r\n   at Infragistics.Windows.DataPresenter.DataPresenterBase.OnSortCriteriaChanged(FieldLayout fieldLayout)\r\n   at Infragistics.Windows.DataPresenter.FieldLayout.BumpSortVersion()\r\n   at Infragistics.Windows.DataPresenter.FieldLayout.OnSortedFieldsPropertyChanged(Object sender, PropertyChangedEventArgs e)\r\n   at Infragistics.Windows.DataPresenter.FieldSortDescriptionCollection.RaisePropertyChangedEvent(String propertyName)\r\n   at Infragistics.Windows.DataPresenter.FieldSortDescriptionCollection.InsertItem(Int32 index, FieldSortDescription fsd)\r\n   at Infragistics.Windows.DataPresenter.CustomizationsManager.ApplyCustomizations()\r\n   at Infragistics.Windows.DataPresenter.CustomizationsManager.LoadCustomizations(Stream stream)\r\n   at Infragistics.Windows.DataPresenter.CustomizationsManager.LoadCustomizations(String customizations)\r\n   at Infragistics.Windows.DataPresenter.DataPresenterBase.LoadCustomizations(String Customizations)\r\n   at Cch.Workflow.UICommonControls.WfmDataGrid.Apply()"