tonerdo / pose

Replace any .NET method (including static and non-virtual) with a delegate
MIT License
1.07k stars 75 forks source link

GetIndexOfMatchingShim's methodBase can be called with null #34

Open StummeJ opened 5 years ago

StummeJ commented 5 years ago

It looks like there is no null check on methodBase on the GetIndexMatchingShim method in the StubHelper.cs file. This is causing an exception.

We were replacing a static method in a static class. Unforcantly I cannot post a code sample for this.

Should there be a null check here before checking if the method is static?