Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Check Nulls on "AutoCompletManager" #101

Closed
wants to merge 2 commits into from
Closed

Check Nulls on "AutoCompletManager" #101

wants to merge 2 commits into from

Conversation

wgnf
Copy link
Contributor

@wgnf wgnf commented Aug 20, 2019

When using the autocomplete field in one of our templates, we learned, that there are some cases where the internal variables of the AutoCompleteManager - such as _textBox, _scrollViewer, _resizeGrip, _scrollBar - can be null in some edge cases. I've yet to analyze why that happens sometimes, but i figured it would be a good idea to add some null-checks when using those variables, before this component throws some NullReferenceExceptions that the consumer has to handle.

wgnf added 2 commits August 20, 2019 08:53
When using the "autocomplete" field in one of our templates, we learned, that there are some cases where the internal variables of the "AutoCompleteManager" - such as "_textBox", "_scrollViewer", "_resizeGrip", "_scrollBar" - can be null in some edge cases. I've yet to analyze why that happens sometimes, but i figured it would be a good idea to add some null-checks when using those variables, before this component throws some "NullReferenceException"s that the consumer has to handle.
@wgnf
Copy link
Contributor Author

wgnf commented Aug 20, 2019

After a discussion, this should not be done this way. First of all we should find the source of the error, before "hiding" the problem with those null checks

@wgnf wgnf closed this Aug 20, 2019
@wgnf wgnf deleted the check-nulls-on-autocompletemanager branch August 20, 2019 07:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant