[Mono-list] NullRefException compiling with mcs
Stuart Ballard
sballard@netreach.com
Thu, 29 Jan 2004 14:23:47 -0500
Miguel de Icaza wrote:
> 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.
Okay, I found it in the latest CVS source code.
The problem happens in approximately line 760 of interface.cs[1]. The
variable "builder" is null at that point.
This means precisely nothing to me, but hopefully it will help you to
help me :)
Stuart.
[1] mono --debug reported it as line 766 which threw me a little,
because that's the line number of the *next* statement. I put in a
Console.WriteLine before line 766 and it never happened, but a
Console.WriteLine before line 760 listed builder as null, which is
consistent with the NRE because line 760 tries to call a method on
builder. Is this a known bug in mono --debug's reporting of line numbers?
--
Stuart Ballard, Senior Web Developer
NetReach, Inc.
(215) 283-2300, ext. 126
http://www.netreach.com/