[Mono-bugs] [Bug 648894] New: DateTime.Now occasionally throws NullReferenceException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 24 19:50:07 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=648894#c0


           Summary: DateTime.Now occasionally throws
                    NullReferenceException
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: peter at endnode.se
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11)
Gecko/20101019 Firefox/3.6.11

Once in a while my program crashes with the following error message:

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.DateTime.get_Now () [0x00020] in
/home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/corlib/System/DateTime.cs:460 
  at PersonalProxy.ProxySession.GotNewRequest (System.Net.Sockets.Socket
client) [0x00000] in /home/peter/Projekt/PersonalProxy/ProxySession.cs:276 
  at PersonalProxy.ProxySession.Run () [0x00026] in
/home/peter/Projekt/PersonalProxy/ProxySession.cs:110 
  at System.Threading.Thread.StartUnsafe () [0x00016] in
/home/ise/svn-packages/mono/trunk/src/mono-2.8/mcs/class/corlib/System.Threading/Thread.cs:844 

>From my code:
ProxySession.cs: Line 276                 DateTime timeout =
DateTime.Now.AddSeconds (30);
The code is compiled in Debug mode.


Reproducible: Sometimes

Steps to Reproduce:
Have occurred more frequently close to the startup of the application. Still
the exception is thrown a couple of times a day

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