[Mono-bugs] [Bug 397126] New: System.Configuration.Install. Installer uses uninitialized variable

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 4 11:14:16 EDT 2008


           Summary: System.Configuration.Install.Installer uses
                    uninitialized variable
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: derekd at omni-ts.com
         QAContact: mono-bugs at lists.ximian.com
                CC: stephane at omni-ts.com
          Found By: ---

In Install.cs a InstallerCollection is declared but never initialized. So you
get a null pointer exception as soon as you try to use it.

public InstallerCollection Installers {
                        get {
                                return installers;

Perhaps something like this instead:

public InstallerCollection Installers {
        get {
                if (installers == null)
                        installers = new InstallerCollection(this);
                return installers;

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