Steps to reproduce:
Start XAF-Main-Demo
Add new Contact
Press Save and Close
Result:
NullReferenceException
Expected result
No Exception, record gets saved
> DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.BarItemLink.GetLargeGlyph() Line 446 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfoCalculator.GetLargeGlyphInfo(DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfo item, DevExpress.Utils.Drawing.ObjectState state) Line 1703 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfoCalculator.DrawLargeGlyph(DevExpress.Utils.Drawing.GraphicsCache cache = {DevExpress.Utils.Drawing.GraphicsCache}, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfo item = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonButtonItemViewInfo}) Line 1254 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfoCalculator.DrawLargeButton(DevExpress.Utils.Drawing.GraphicsCache cache = {DevExpress.Utils.Drawing.GraphicsCache}, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfo item = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonButtonItemViewInfo}) Line 1205 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.Drawing.RibbonItemPainter.DrawObject(DevExpress.Utils.Drawing.ObjectInfoArgs e = {DevExpress.XtraBars.Ribbon.Drawing.RibbonDrawInfo}) Line 32 C#
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.ObjectPainter.DrawObject(DevExpress.Utils.Drawing.GraphicsCache cache, DevExpress.Utils.Drawing.ObjectPainter painter, DevExpress.Utils.Drawing.ObjectInfoArgs e = {DevExpress.XtraBars.Ribbon.Drawing.RibbonDrawInfo}) Unknown
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.Animation.ObjectPaintInfo.Draw(DevExpress.Utils.Drawing.GraphicsCache cache) Unknown
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.Animation.XtraAnimator.CreateBitmap(DevExpress.Utils.Drawing.Animation.ObjectPaintInfo backInfo, DevExpress.Utils.Drawing.Animation.ObjectPaintInfo foreInfo, System.Drawing.Rectangle foreBounds, bool allowStringDrawing = false) Unknown
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.BaseRibbonViewInfo.OnHotObjectChanging(DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo prev, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo current = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo}) Line 341 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.OnHotObjectChanging(DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo prev = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo}, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo current = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo}) Line 1112 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.BaseRibbonViewInfo.HotObject.set(DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo value = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo}) Line 570 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.HotObject.set(DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo value) Line 1667 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.UpdateHotObject(DevExpress.Utils.DXMouseEventArgs e, bool forceUpdate) Line 512 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DevExpress.Utils.DXMouseEventArgs e = {X = 183 Y = 111 Button = Left}, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo hitInfo = {DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo}) Line 471 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DevExpress.Utils.DXMouseEventArgs e, DevExpress.XtraBars.Ribbon.ViewInfo.RibbonHitInfo hitInfo) Line 445 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DevExpress.Utils.DXMouseEventArgs e) Line 313 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DevExpress.Utils.DXMouseEventArgs e = {X = 183 Y = 111 Button = Left}) Line 388 C#
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(System.Windows.Forms.MouseEventArgs e) Line 2602 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unknown
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Controls.ControlBase.WndProc(ref System.Windows.Forms.Message m) Unknown
DevExpress.XtraBars.v15.1.dll!DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(ref System.Windows.Forms.Message m = {System.Windows.Forms.Message}) Line 3813 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) Unknown
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 514, System.IntPtr wparam, System.IntPtr lparam) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
DevExpress.Utils.v15.1.dll!DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(System.IntPtr hWnd, System.IntPtr Msg, System.IntPtr wParam, System.IntPtr lParam, System.IntPtr uIdSubclass, System.IntPtr dwRefData = {System.IntPtr}) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason = -1, int pvLoopData = 0) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason = -1, System.Windows.Forms.ApplicationContext context = {System.Windows.Forms.ApplicationContext}) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Application.Run() Unknown
GetLargeGlyph should check ImageUri for null, GetLargeGlyphSize does ist
this one is urgent, because we got allready a hotfix for an other error…
hth
René
Hi René,
I have reproduced the issue and passed this ticket to our developers for further research. We will inform you of our results once we have any. Please stay tuned.