[Mono-bugs] [Bug 406897] New: Null reference exception on Settings.Reload

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 7 15:26:37 EDT 2008


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


           Summary: Null reference exception on Settings.Reload
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jfoster at capsher.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer


Created an attachment (id=226346)
 --> (https://bugzilla.novell.com/attachment.cgi?id=226346)
ZIP file containing a CSPROJ with all needed files

When I call Properties.Settings.Default.Reload(), Mono crashes with the
following null exception:

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Configuration.CustomizableFileSettingsProvider.Reset
(System.Configuration.SettingsContext context) [0x00000]
  at System.Configuration.LocalFileSettingsProvider.Reset
(System.Configuration.SettingsContext context) [0x00000]
  at System.Configuration.ApplicationSettingsBase.Reload () [0x00000]
....

I've encountered this problem in both Windows XP (32-bit) and the Mono-provided
openSUSE 10.3 image.  I've attached a test case that has a Settings file with a
single Bool value in it.  Clicking the button fires off a
Properties.Settings.Default.Reload(), which will crash the executable.  I've
attached the entire CSPROJ (Visual Studio 2005), since the Settings file is
needed to demonstrate the error.


-- 
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