-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException when creating proxy with constructor initialized properties #16
Comments
I've got the same issue too. |
@FranckDepoortere It's already fixed, but I need that the lazy @darkcamper can update the pull request (note he's a friend of mine :P) |
Because of some personal affairs, @darkcamper couldn't fix the associated pull request, thus, I've already fixed this issue and I've provided a simple test case demonstrating that it already works! TrackerDog NuGet package v2.1.1 is already available. |
When I try to create a proxy from a class that assigns a value to a property from the constructor a NullReferenceException is thrown.
I know that calling virtual member functions from the constructor can cause problems, but the property is only virtual because it is necessary for proxy creation.
I have added a new test to ProxyCreationTest.cs that reproduces this issue.
The text was updated successfully, but these errors were encountered: