[Mono-bugs] [Bug 386644] New: ToolStrip: NRE on Alt keypress when no items

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 5 06:57:42 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=386644


           Summary: ToolStrip: NRE on Alt keypress when no items
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=212247)
 --> (https://bugzilla.novell.com/attachment.cgi?id=212247)
Repro

Not a useful app...  But when no menu items, pressing Alt causes an NRE.   Seen
in my all-controls property-grid app (on bug XXXXXX).

Repro attached.  With focus on its window, press and release the Alt key, or do
Alt+A etc.

Exception
[[
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Windows.Forms.ToolStrip.ChangeSelection
(System.Windows.Forms.ToolStripItem nextItem) [0x00000] 
  at System.Windows.Forms.ToolStrip.SelectNextToolStripItem
(System.Windows.Forms.ToolStripItem start, Boolean forward) [0x00000] 
  at System.Windows.Forms.MenuStrip.OnMenuKey () [0x00000] 
  at System.Windows.Forms.ToolStripManager.ProcessMenuKey
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control.WmSysKeyUp (System.Windows.Forms.Message& m)
[0x00000] 
…
…
]]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list