Skip to content

Commit 2ab2e59

Browse files
author
denfromufa
committed
Update methodbinder.cs
1 parent 0020188 commit 2ab2e59

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/runtime/methodbinder.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ internal static MethodInfo MatchSignature(MethodInfo[] mi, Type[] tp) {
7373
// return the MethodInfo that represents the matching closed generic.
7474
//====================================================================
7575

76-
internal static MethodInfo MatchParameters(MethodInfo[] mi,Type[] tp) {
77-
int count = tp.Length;
76+
internal static MethodInfo MatchParameters(MethodInfo[] mi, Type[] tp) {
77+
if (tp == null) {
78+
return null;
79+
}
80+
int count = tp.Length;
7881
for (int i = 0; i < mi.Length; i++) {
7982
if (!mi[i].IsGenericMethodDefinition) {
8083
continue;

0 commit comments

Comments
 (0)