We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b61e297 commit 02f0ddcCopy full SHA for 02f0ddc
XFGoogleMapSample/XFGoogleMapSample/PinsPage.xaml.cs
@@ -77,8 +77,8 @@ public PinsPage()
77
{
78
map.Pins.Clear();
79
80
- pinTokyo.Clicked -= Pin_Clicked;
81
- pinNewYork.Clicked -= Pin_Clicked;
+ if (pinTokyo != null) pinTokyo.Clicked -= Pin_Clicked;
+ if (pinNewYork != null) pinNewYork.Clicked -= Pin_Clicked;
82
pinTokyo = null;
83
pinNewYork = null;
84
buttonAddPinTokyo.IsEnabled = true;
0 commit comments