http://bugzilla.novell.com/show_bug.cgi?id=507120
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=507120#c1 Carlos Alberto Cortez <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Carlos Alberto Cortez <[email protected]> 2009-06-06 06:28:07 MDT --- The fix for (1) was applied in rev 135593: 2009-06-06 Carlos Alberto Cortez <[email protected]> * ListBindingHelper.cs: In GetListItemType handle gracefully the case where an instance of IEnumerator returns a null value for its Current property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com). Fixes #507120. Regarding this one: if (dataSource is IList || dataSource.GetType () == typeof (IList<>)) { PropertyInfo property = GetPropertyByReflection (dataSource.GetType (), "Item"); if (property != null) return property.PropertyType; } There's no need to use it at all, since before trying to load the "Item" property we have already checked the class implements IList/IList<T> which *do* implement this property. We just get the type information from that property, and we are not actually using/calling it, so it doesn't matter if the collection is empty or has a null element. -- Configure bugmail: http://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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
