[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DotGNU]Bug - null objects and stack traces.
From: |
Jonathan P Springer |
Subject: |
[DotGNU]Bug - null objects and stack traces. |
Date: |
Thu, 3 Oct 2002 10:23:14 -0400 |
User-agent: |
Mutt/1.4i |
See attached program.
When executed, it reports a null pointer exception as follows:
Uncaught exception: System.NullReferenceException: The value 'null' was found
where an instance of an object was required
at System.Private.Stack.Push(Object) in Stack.cs:74
at Test.Main() in Stack.cs:155
The null pointer in question is actually the uninitialized Stack object
in Main, but it gets into Push before complaining. The extra layer of
stack drove me nuts for several hours last night. Any thoughts on how
to eliminate it?
-js
--
-Jonathan P Springer <address@hidden>
------------------------------------------------------------------------------
"A standard is an arbitrary solution to a recurring problem." - Joe Hazen
Stack.cs
Description: Text document
- [DotGNU]Bug - null objects and stack traces.,
Jonathan P Springer <=