[Mono-bugs] [Bug 475327] An anon delegate inside of a templated function gets null reference in MutateHoistedGenericType
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 12 14:55:25 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=475327
User khester at pacificbiosciences.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=475327#c3
Kevin Hester <khester at pacificbiosciences.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 - None |P2 - High
Severity|Normal |Critical
--- Comment #3 from Kevin Hester <khester at pacificbiosciences.com> 2009-02-12 12:55:25 MST ---
Okay - I've now made a fix for this bug which I'll attach later this afternoon.
The problem is that array_data in array constructors may contain null data
(I've noticed that all the other methods in this class are careful to check for
and handled nulls in array data:
public override void MutateHoistedGenericType (AnonymousMethodStorey
storey)
{
array_element_type = storey.MutateType (array_element_type);
type = storey.MutateType (type);
if (arguments != null) {
foreach (Argument a in arguments)
a.Expr.MutateHoistedGenericType (storey);
}
if (array_data != null) {
foreach (Expression e in array_data)
// fix bug 475327 - nulls don't need to be hoisted
if(e != null)
e.MutateHoistedGenericType (storey);
}
}
--
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