Anyone can upload a patch. Patches are evaluated by project team members and either Applied or Declined.
1-3 of 3Patches
< Previous 1 Next >
Applied Mar 24 2008 |
47 |
Jun 4 2007 at 9:57 PM |
mdissel |
When compiling in .NET 1.1 it's using an array with length equal to all methods in the current type, resulting in Null Reference exception later on in the code..
LINE 178 System.Collections.ArrayList methodList = new System.Collections.ArrayList(); // was MethodInfo[] methods = new MethodInfo[mi.Length]; // maximum length
LINE 230 methodList.Add(method); ( methods[mc++] = method;)
LINE 234 (after } of loop and before // render client-side proxy file) #if(!NET20) MethodInfo[] methods = (MethodInfo[])methodList.ToArray(typeof(MethodInfo)); #endif
Using the rev. from 28 april
Thanks
Marco
|
|
Download
|
Applied Mar 24 2008 |
304 |
Sep 19 2007 at 1:57 PM |
V1p3r |
"RenderMethods" methods in TypeJavaScriptProvider.cs get passed in arrays with default size of 100. If the array contains any less than 100, the for loop will null reference exception, causing behavior described in work item 12114.
The patch adds a null value check at the beginning of the for loop for the RenderMethods methods at lines: 163, 227 and 367 in TypeJavaScriptProvider.cs.
It may be more appropriate to do the work before the method gets called, and ensure the array is of the correct size. This was the quick fix.
N.
|
12114
|
Download
|
Declined Mar 24 2008 |
237 |
Aug 24 2007 at 2:19 PM |
cytosoul |
Modified line 101 to state " if (e.style.height && e.style.height != "auto") {"
This code assumes e.style.height is a numerical value, which is not always the case. (Ex., "auto"). Encountered when adding a CollapsiblePanelExtender to a DropPanelExtender.
|
|
|
1-3 of 3Patches
< Previous 1 Next >