[Mono-list] NullRefException compiling with mcs

Gustavo Ramos eureko@grmexico.com.mx
29 Jan 2004 18:10:20 -0600

Hi there,

> > > It is hard to tell from the stack trace that you provided, and that
> > > version of the compiler is fairly old, we have fixed roughly a hundred
> > > bugs since that release.
> > > 
> > > It would be useful if you could try with a new compiler, or isolate a
> > > sample test case.
> > 
> > The 20040111 snapshot has the same problem (stack trace below, I'm not 
> > sure whether it's identical but it's similar), and since that's the 
> > latest debian package to have been created, it's the latest that's easy 
> > for me to test.
> Please run with --debug and once you get the line numbers, look at the
> errors around those lines, and add some WriteLines to identify what
> variable is null.

Miguel has said it: get an isolated test case. Expose the error instead
of hiding it among a great bunch of lines of code: Get the smaller
program you can that exposes the error. That's easier to debug.