-
Notifications
You must be signed in to change notification settings - Fork 337
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 reference exception while closing a popup #350
Comments
Another note: the popup is still visible after the exception occurs |
Hi Have the same Issue, I got this message "there is not page in Popupstack" after |
you should check it before popping
if you look at the source code, it throws exception when there is no popup in the stack
|
even though i am seeing this message for |
But why this error just happens in some devices, I only can reproduce this error in a Samsung Galaxy with Android 7. |
How do you reproduce it? Can you describe the steps and if possible give some code or repro project? |
…ere were not any pages in the PopupStack. See #350
I need more information about this issue. If there are not any pages in @EmilAlipiev I just have implemented throwing an exception if there are not any pages in |
I notice this is closed, but perhaps it shouldn't be. Just a 'me to' post on this. Works fine on Android, but ANY ATTEMPT to close the current popup on IOS via a button on the popup using either await PopupNavigation.Instance.PopAsync(); or await PopupNavigation.Instance.PopAllAsync(); Results in an exception: System.IndexOutOfRangeException: There is not page in PopupStack It matters not whether I check the stack before closing via 'if (PopupNavigation.Instance.PopupStack.Any())' it still crashes!! Trying the operation on the MainThread also crashes in the same way: Device.BeginInvokeOnMainThread(async () => Any route forward? Maybe I need to try a different version of the popup plugin or Xamarin.Forms. I am forced to use XF: 3.6.0.344457 as thus far all the 4.x releases feature a known bug that means that images don't load reliably in list controls on Android. Using rg.Plugins.Popup V1.1.5.188 Nigel |
@veletron2 Try to use the last version from Development NuGet: https://ci.appveyor.com/nuget/rg-plugins-popup-p6l5elugev99. I fixed it many time ago but I still not publish a new version. I'm going to do it ASAP. |
I'm seeing this with Xamarin.Forms version 3.1.0.637273.
System.NullReferenceException: Object reference not set to an instance of an object
at Rg.Plugins.Popup.IOS.Impl.PopupPlatformIos+d__10.MoveNext () [0x000f8] in :0
My source where the exception is occurring is:
await PopupNavigation.Instance.PopAsync(false);
The text was updated successfully, but these errors were encountered: