Menu -> Edit All Categories (object reference not set to an instance of an object)

Reading this it seems like there is an issue somewhere with a ButtonColor in the menu. Any idea how to trace this down?

[General Info]

Application: SambaPOS
Version:     5.3.2
Region:      en
DB:          SQ
Machine:     DESKTOP-PGCF62G
User:        josep
Date:        2/18/2021
Time:        3:53 PM

User Explanation:

josep said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        System.NullReferenceException
Message:     Object reference not set to an instance of an object.
Source:      Samba.Management
Stack Trace: at Samba.Management.MenuModule.ScreenMenuCategoryViewModel.get_ButtonColor()
   at (Object )
   at DevExpress.Data.Access.DataListDescriptor.FastPropertyDescriptor.GetValue(Object component)
   at DevExpress.Data.Helpers.BaseListDataControllerHelper.GetRowValue(Int32 listSourceRow, DataColumnInfo columnInfo, OperationCompleted completed)
   at DevExpress.Data.DataController.GetRowValue(Int32 controllerRow, Int32 column, OperationCompleted completed)
   at DevExpress.Data.BaseListSourceDataController.GetRowValue(Int32 controllerRow, Int32 column, OperationCompleted completed)
   at DevExpress.Data.DataController.GetRowValue(Int32 controllerRow, DataColumnInfo column, OperationCompleted completed)
   at DevExpress.Data.DataController.GetRowValue(Int32 controllerRow, DataColumnInfo column)
   at DevExpress.Xpf.Data.GridDataProvider.GetRowValue(Int32 rowHandle, DataColumnInfo info)
   at DevExpress.Xpf.Data.GridDataProvider.GetRowValue(Int32 rowHandle, String fieldName)
   at DevExpress.Xpf.Grid.GridControl.GetCellValueCore(Int32 rowHandle, String fieldName)
   at DevExpress.Xpf.Grid.Native.VisualDataTreeBuilder.GetCellValue(RowData rowData, String fieldName)
   at DevExpress.Xpf.Grid.GridCellData.GetValue()
   at DevExpress.Xpf.Grid.GridCellData.UpdateValue(Boolean forceUpdate)
   at DevExpress.Xpf.Grid.GridDataBase.OnDataChanged()
   at DevExpress.Xpf.Grid.GridColumnData.OnDataChanged()
   at DevExpress.Xpf.Grid.GridDataBase.set_Data(Object value)
   at DevExpress.Xpf.Grid.Native.VisualDataTreeBuilder.UpdateCellData(RowData rowData, GridCellData cellData, ColumnBase column)
   at DevExpress.Xpf.Grid.RowData.UpdateCellData(ColumnBase column, GridColumnData cellData)
   at DevExpress.Xpf.Grid.RowData.<UpdateDataCore>b__14(ColumnBase col, GridColumnData cellData)
   at DevExpress.Xpf.Grid.RowData.IterateNotNullDataCore[TData](Dictionary`2 cache, Action`2 updateMethod)
   at DevExpress.Xpf.Grid.RowData.<>c__DisplayClass5.<IterateNotNullData>b__4()
   at DevExpress.Xpf.Core.Locker.DoLockedAction(Action action)
   at DevExpress.Xpf.Grid.RowData.IterateNotNullData(Action`2 updateMethod)
   at DevExpress.Xpf.Grid.RowData.UpdateDataCore(ColumnBase column, Int32 listSourceRowIndex)
   at DevExpress.Xpf.Grid.RowData.AssignFromCore(Int32 rowHandle, Int32 listSourceRowIndex, ColumnBase column)
   at DevExpress.Xpf.Grid.Native.DataControlBestFitCalculator.RowsBestFitCalculator.UpdateBestFitControl(FrameworkElement bestFitControl, IBestFitColumn column, Int32 rowHandle)
   at DevExpress.Xpf.Core.Native.BestFitCalculatorBase.RowsBestFitCalculatorBase.CalcRowsBestFit(FrameworkElement bestFitControl, IBestFitColumn column, Double& result)
   at DevExpress.Xpf.Grid.Native.DataControlBestFitCalculator.RowsBestFitCalculator.CalcRowsBestFit(FrameworkElement bestFitControl, IBestFitColumn column, Double& result)
   at DevExpress.Xpf.Core.Native.BestFitCalculatorBase.CalcDataBestFit(IBestFitColumn column, Double& result)
   at DevExpress.Xpf.Grid.Native.DataControlBestFitCalculator.CalcColumnBestFitWidthCore(IBestFitColumn column)
   at DevExpress.Xpf.Core.Native.BestFitCalculatorBase.CalcColumnBestFitWidth(IBestFitColumn column)
   at DevExpress.Xpf.Grid.Native.DataControlBestFitCalculator.CalcColumnBestFitWidth(IBestFitColumn column)
   at DevExpress.Xpf.Grid.Native.TableViewBehavior.CalcColumnBestFitWidthCore(ColumnBase column)
   at DevExpress.Xpf.Grid.Native.TableViewBehavior.BestFitColumns()
   at Samba.Presentation.Controls.Interaction.GridEditorForm.GridEditorForm_OnLoaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Samba.Services, Version=5.3.7691.30145
Samba.Domain, Version=5.3.7691.30144
Samba.Infrastructure.Data, Version=5.3.7691.30143
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=5.3.7691.30150
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v17.2, Version=17.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v17.2, Version=17.2.13.0
DevExpress.Xpf.Grid.v17.2.Core, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Infrastructure, Version=5.3.7691.30138
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=5.3.7691.30144
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=5.3.7691.30140
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
NCalc, Version=1.3.8.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
WindowsInput, Version=1.0.4.0

-----------------------------

[System Info]

Operating System
-Microsoft Windows 10 Home
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = -480
--FreePhysicalMemory = 6776420
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.19042

Machine
-DESKTOP-PGCF62G
--Manufacturer = Alienware
--Model = Alienware m15 R3
--TotalPhysicalMemory = 16930328576
--UserName = DESKTOP-PGCF62G\josep

-----------------------------

Looks like there may be a null color. Check for any colors that say Null

Ding Ding Ding… We have a winner. The one oddity with this issue is that selecting “Automatic” wouldn’t work. It kept the null value. I had to pick a specific color.

image