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

Null class property can only be retrieved once #41

Open
stuffaboutpete opened this issue May 30, 2015 · 0 comments
Open

Null class property can only be retrieved once #41

stuffaboutpete opened this issue May 30, 2015 · 0 comments
Labels

Comments

@stuffaboutpete
Copy link
Owner

When accessing a class property which has no default value and has not been assigned a value, the first retrieval works just fine but any subsequent 'get' triggers an error indicating that null is not a valid value.

I believe the fix is below, but I haven't run it in any tests yet...

src/Registry/Member.js

-169        classInstanceData.properties[name] = defaultValue;
+169        if (defaultValue !== null) classInstanceData.properties[name] = defaultValue;
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

1 participant