Bug 312561 (MONO45990) - nullreferenceexception when array is certain size
Summary: nullreferenceexception when array is certain size
Status: RESOLVED MOVED
Alias: MONO45990
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Red Hat 9.0
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-08 22:19 UTC by Avi Herscovici
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
code that causes error (541 bytes, text/plain)
2003-07-08 22:19 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:12:41 UTC


---- Reported by aherscovici@empirix.com 2003-07-08 15:19:18 MST ----

The exception is thrown only when the array is of the size in the example 
or bigger.  If you cut out a row my program hangs, and if you cut out two 
rows from the initial value, then it returns the correct value.

Steps to reproduce the problem:
1. compile code
2. run exe

Actual Results:
Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for TestInitialize.testinit ---> 
System.NullReferenceException: A null value was found where an object 
instance was required
in <0x00037> 00 TestInitialize.testinit:.cctor ()

Expected Results:
Temp should not be nothing: 1

How often does this happen? 
Always

Additional Information:



---- Additional Comments From aherscovici@empirix.com 2003-07-08 15:19:47 MST ----

Created an attachment (id=164791)
code that causes error




---- Additional Comments From bmaurer@users.sf.net 2003-07-10 10:30:10 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO45817 ***

Imported an attachment (id=164791)

This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"