mrjavicho/MvxPopupNavigation

Object reference not set to an instance of an object.

Closed this issue · 2 comments

in CustomMvxFormsPagePresenter should add if (currentPage != null) before currentPage.ViewModel.ViewDisappearing();

because ,if ShowPopup() in ViewModel's Initialize() will throw NullReferenceException

@bingxueyinlian I'm very sorry, I wasn't really aware that someone else was using this. I have a couple of extra adjustments on my local machine, I'll create a new version with those and the null check ;)

Check added to v2.0.0