Bug Report T300109
Visible to All Users

NullReferenceException may occur at DevExpress.XtraBars.Ribbon.ViewInfo.BaseRibbonViewInfo.OnHotObjectChanging or DevExpress.XtraBars.BarItemLink.CreateViewInfo with the 15.1.7.15281 hotfix

created 9 years ago

Hi Guys,

i am on 15.1.7.15281 - when i start MainDemo Ribbon - click EditModel, and then Close the ModelEditor - an NullReferenceException happens?
 Type:       NullReferenceException
 Message:    Object reference not set to an instance of an object.
 Data:       0 entries
 Stack trace:
   at DevExpress.XtraBars.BarItemLink.CreateViewInfo()
   at DevExpress.XtraBars.Ribbon.ViewInfo.RibbonItemViewInfo.GetLinkViewInfo()
   at DevExpress.XtraBars.BarItemLink.CheckUpdateLinkState()
   at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.DoPressedLinkChanging(BarItemLink oldLink, BarItemLink newLink, Boolean isArrow)
   at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
   at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
   at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
   at DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
   at DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
   at DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 InnerException is null

Show previous comments (4)
M M
Martin Praxmarer - DevExpress MVP 9 years ago

    BTW: Works fine with build 15.1.7.15272

    RE RE
    Reinhold Erlacher 9 years ago

      Hello I get the same error here with 15281:
      Type:       NullReferenceException
      Message:    Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      Data:       0 entries
      Stack trace:
        bei DevExpress.XtraBars.Ribbon.ViewInfo.BaseRibbonViewInfo.OnHotObjectChanging(RibbonHitInfo prev, RibbonHitInfo current)
        bei DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.OnHotObjectChanging(RibbonHitInfo prev, RibbonHitInfo current)
        bei DevExpress.XtraBars.Ribbon.ViewInfo.BaseRibbonViewInfo.set_HotObject(RibbonHitInfo value)
        bei DevExpress.XtraBars.Ribbon.ViewInfo.RibbonViewInfo.set_HotObject(RibbonHitInfo value)
        bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.UpdateHotObject(DXMouseEventArgs e, Boolean forceUpdate)
        bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
        bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DXMouseEventArgs e, RibbonHitInfo hitInfo)
        bei DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
        bei DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
        bei DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(MouseEventArgs e)
        bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
        bei System.Windows.Forms.Control.WndProc(Message& m)
        bei DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
        bei DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(Message& m)
        bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
        bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
        bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      InnerException is null

      DevExpress Support Team 9 years ago

        Hello Martin and Reinhold,
        We'll keep on working on these issues. It appears that they are related. If you have any information that may help us reproduce the second one (exact steps or a sample project), please share it with us.
        We'll update this thread once we have any results.

        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.

          Show previous comments (11)
          M M
          Martin Praxmarer - DevExpress MVP 9 years ago
            DevExpress Support Team 9 years ago

              Thank you for this information. We greatly appreciate your cooperation. We are researching both issues at the moment. You'll receive an automatic notification once we have any results.

              DevExpress Support Team 9 years ago

                Hello,
                We've modified the mentioned method, and the issue appears to be fixed. Please let us know if you need further assistance.

                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.