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

query.areAllParametersSet does not work with observable parameters #655

Closed
bnordli opened this issue Jun 12, 2015 · 1 comment
Closed

query.areAllParametersSet does not work with observable parameters #655

bnordli opened this issue Jun 12, 2015 · 1 comment

Comments

@bnordli
Copy link
Contributor

bnordli commented Jun 12, 2015

If a query has observable parameters, areAllParametersSet will return true even when this observable parameter has null value.

Example:

query = someQuery.create();
query.someParameter(ko.observable());
query.areAllParametersSet(); // will return true.

@bnordli
Copy link
Contributor Author

bnordli commented Jun 12, 2015

Note: This leads to potentially running the query with a null or undefined parameter, resulting in a NullReferenceException in QueryService.PopulateProperties.

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

No branches or pull requests

2 participants