Skip to content
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

Closed
darkcamper opened this issue Aug 8, 2016 · 3 comments
Assignees
Labels

Comments

@darkcamper
Copy link

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.

@FranckDepoortere
Copy link

I've got the same issue too.

@mfidemraizer
Copy link
Owner

mfidemraizer commented Aug 9, 2016

@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)

mfidemraizer added a commit that referenced this issue Aug 16, 2016
mfidemraizer added a commit that referenced this issue Aug 16, 2016
mfidemraizer added a commit that referenced this issue Aug 16, 2016
@mfidemraizer
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants