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()"
HI,
Just following up on this issue.
Please let me know if you require further assistance.
Sincerely,
MattDeveloper Support Engineer
I was unable to reproduce your issue usng NetAdvantage for WPF 9.1.1006.
I have a DataPresenter on my form and in the Window_Load event after binding, I load a prior saved customization. It loaded without without throwing an exception.
Please review my sample that I attached to this forum. Feel free to modify it so that it replicates your issue.
Sincerely, MattDeveloper Support Engineer