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()"

 

Parents
  • 28407
    posted

    HI,

     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,
     Matt
    Developer Support Engineer

    WpfApplication3.rar
Reply Children
No Data