8000 Update methodbinder.cs · pythonnet/pythonnet@2ab2e59 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 5 additions & 2 deletions
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)
0