Bug Report T297043
Visible to All Users

XAF Main Demo - NullReferenceException is thrown after adding a new contact and pressing the Save and Close button

created 9 years ago

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é

Comments (1)
Alisher (DevExpress Support) 9 years ago

    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.

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (2)
      R R
      René Karmus-Grundner 9 years ago

        The file seems to be broken, please fix it.

        Alisher (DevExpress Support) 9 years ago

          Hi René,

          We have fixed the link. Please download the installation file once again.
          We apologize for any inconvenience.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.