[Mono-bugs] [Bug 466605] NullReferenceException when setting ForeColor and BackColor of a ListViewSubItem

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 17 19:46:22 EST 2009


User calberto.cortez at gmail.com added comment

Carlos Alberto Cortez <calberto.cortez at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |calberto.cortez at gmail.com

--- Comment #1 from Carlos Alberto Cortez <calberto.cortez at gmail.com>  2009-01-17 17:46:16 MST ---
I'm afraid that's not true anymore. Our current code in svn (and I bet 2.2 too)
looks like this:

                        public ListViewSubItem ()
                                : this (null, string.Empty, Color.Empty,
                                        Color.Empty, null)

Which means that the default .ctor is calling a more complete .ctor that
actually initializes the style field. I tested with a piece of code creating
the default .ctor for ListViewSubItem, and then setting ForeColor/BackColor and
it is not throwing any exception.

Would you mind confirm, so we can close this bug? Thanks!

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