inversionhourglass / Rougamo

Compile-time AOP component. Works with any method, whether it is async or sync, instance or static. Uses an aspectj-like pattern to match methods.
MIT License
393 stars 47 forks source link

NullReferenceException when intercepting a method which return List<T> #35

Closed mulei2023 closed 1 year ago

mulei2023 commented 1 year ago

My code like the following:

image

At the very beginning, the exception is the same with which in issue#27 https://github.com/inversionhourglass/Rougamo/issues/27. Then,I upgrade to 1.3.3.

But now, exception still there with the following stack:

System.NullReferenceException: Object reference not set to an instance of an object.

at Rougamo.ExMoAttribute.TryResolve(Type type, Object returnValue, Func`3& func) at Rougamo.ExMoAttribute.OnSuccess(MethodContext context) ....

The difference of my new issue and the issue#27 is :

my issue: Rougamo.ExMoAttribute.TryResolve(Type type, Object returnValue, Func`3& func)
issue#27: Rougamo.ExMoAttribute.TryResolve(Type type, Func`3& func)
inversionhourglass commented 1 year ago

Thanks for your feedback, it will be fix later.

inversionhourglass commented 1 year ago

1.3.4 has been released, you can update and try again.

mulei2023 commented 1 year ago

so rapid reply!