Hello and thank for your product and help:
Xamarin Form: 5.0.0.2125
Syncfution: 19.3.0.45
Platform: Android
1==> I have sfpopup1 defined in mypage.xaml
2==> this sfpopup1 call a custom view its datatemplate :
<sfpopup:PopupView.ContentTemplate>
<DataTemplate>
<ContentView>
<ContentView.Content>
<customViews:mycustomView/>
</ContentView.Content>
</ContentView>
</DataTemplate>
</sfpopup:PopupView.ContentTemplate>
3==> in mycustomView i have a definition of sfpopup2.
PB scenario :
when i click for the first time on sfpopup1 it show me the data and i can click to show the second popup2 with success.
But when i close the popup2 and then i close the popup1, then i click to open the popup1 again, for the second time, i got this error :
$exception {System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.XForms.Android.PopupLayout.PopupLayoutDependencyService.Show (System.Object nativeObject, Syncfusion.XForms.PopupLayout.SfPopupLayout formsPopup) [0x00017] in <2a371ae052bd4549be9649e4f0ade4d0>:0
at Syncfusion.XForms.PopupLayout.SfPopupLayout.Show (System.Boolean isFullScreen) [0x00018] in <452eb09ad7204bdc8957931a3d022370>:0
at Syncfusion.XForms.PopupLayout.SfPopupLayout.OnIsOpenChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0007f] in <452eb09ad7204bdc8957931a3d022370>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00226] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:160
at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:762
at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000cb] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:773
at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:666
NB :
if i change the call of popup2 by navigation to a new page from the popup1, it works fine.
Hey Guys, thank you for your response.
here you can find your solution modified to reproduce the bug.
the scenario is
1=> click to open the popup1 and then click to open popup2 then click ok to close the timerpickup
and try to do it again from the starting you will see the error
Or just click to open popup1 for the second time and you will see the error.
NB :
the size of allowed attached file (max file size: 30MB) is less than my project zipped, so i just attached the shared project where you can find the modified files and please don't forget to add theses nuggets at the solution level
Syncfusion.Xamarin.SfPicker 19.3.0.45
Syncfusion.Xamarin.SfPopup 19.3.0.45
please let me know if you see the error
Attachment: GettingStarted_aaa7c9b3.zip
Suja