Skip to content

Proxy object backing field is null though property has value #3589

Answered by hazzik
emills-loftware asked this question in General
Discussion options

You must be logged in to vote

or how to avoid in the future

Don’t access fields you don’t own, even if you can.

The field you’re trying to access is an unintialized field of a proxy object. The proxy has a reference to the instance object whose fields are getting initialized. This is done this way for the reason of inheritance.

The only fields you can access directly are the fields of the this object. Other objects’ fields should be accessed through properties or you need to explicitly unwrap the proxy.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emills-loftware
Comment options

Answer selected by emills-loftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3588 on July 23, 2024 08:40.