Skip to content

Commit

Permalink
feat(handler): allow protected and private fields for handler
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifenglee-aelf committed Oct 15, 2024
1 parent b488305 commit 7a20c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AElf.ExceptionHandler/ExceptionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private static string CacheKey(Type targetType, string methodName)
private static ExceptionHandlerInfo CreateExceptionHandlerInfo(Type targetType, string methodName)
{
Func<object, object[], Task<FlowBehavior>> methodToCall;
var methodInfo = targetType.GetMethod(methodName);
var methodInfo = targetType.GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
var methodParams = methodInfo.GetParameters();

Check warning on line 396 in AElf.ExceptionHandler/ExceptionHandler.cs

View workflow job for this annotation

GitHub Actions / publish

Dereference of a possibly null reference.

var instanceParameter = Expression.Parameter(typeof(object), "instance");
Expand Down

0 comments on commit 7a20c15

Please sign in to comment.