Skip to content

Fix NullReferenceException for some scenarios #1200

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

Merged
merged 1 commit into from
Jun 24, 2020
Merged

Fix NullReferenceException for some scenarios #1200

merged 1 commit into from
Jun 24, 2020

Conversation

tsvietOK
Copy link
Contributor

new SidebarPinnedModel() should be called before using.

@tsvietOK tsvietOK requested a review from yaira2 June 22, 2020 17:11
@ghost ghost added the needs - code review label Jun 22, 2020
@yaira2
Copy link
Member

yaira2 commented Jun 22, 2020

While this would work, the better solution would be to load the view models from app.cs. Additionally, loading the sidebar items should be done from the sidebar, not from SettingsViewModel.

@yaira2 yaira2 added changes requested Changes are needed for this pull request and removed needs - code review labels Jun 22, 2020
@tsvietOK
Copy link
Contributor Author

tsvietOK commented Jun 22, 2020

@yaichenbaum Just want to note, to initialize sidebar model without problems, we have to do it after App.AppSettings initializing is done in InstanseViewModel

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed changes requested Changes are needed for this pull request labels Jun 24, 2020
@yaira2 yaira2 merged commit f28bffb into files-community:master Jun 24, 2020
@tsvietOK tsvietOK deleted the null-fix branch June 24, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants