* statement.cs (ProcessParameters): Don't crash when parameters have wrong
syntax.
svn path=/trunk/mcs/; revision=83108
+2007-07-31 Marek Safar <marek.safar@gmail.com>
+
+ * statement.cs (ProcessParameters): Don't crash when parameters have wrong
+ syntax.
+
2007-07-26 Jb Evain <jbevain@novell.com>
* typemanager.cs (TypeManager.GetConstructor): Add a method overload
for (int i = 0; i < n; ++i) {
parameter_info [i] = new ToplevelParameterInfo (this, i);
- string name = parameters [i].Name;
+ Parameter p = parameters [i];
+ if (p == null)
+ continue;
+ string name = p.Name;
LocalInfo vi = GetLocalInfo (name);
if (vi != null) {
Report.SymbolRelatedToPreviousError (vi.Location, name);