Skip to content

Commit 2c5e6be

Browse files
authored
Merge pull request amay077#505 from amay077/issue_504
Fix NullPointerException when Page popped
2 parents 6aaf4c6 + 4b01ffa commit 2c5e6be

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: XFGoogleMapSample/XFGoogleMapSample/BoundsTestPage.xaml.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace XFGoogleMapSample.local
1313
{
14-
[XamlCompilation(XamlCompilationOptions.Compile)]
15-
public partial class BoundsTestPage : ContentPage
16-
{
17-
public BoundsTestPage ()
18-
{
19-
InitializeComponent ();
14+
[XamlCompilation(XamlCompilationOptions.Compile)]
15+
public partial class BoundsTestPage : ContentPage
16+
{
17+
public BoundsTestPage ()
18+
{
19+
InitializeComponent ();
2020

2121
// Colosseum of Rome: 41.890251, 12.492373
2222
var center = new Position(41.890251, 12.492373);

Diff for: Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps.iOS/MapRenderer.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ protected override void Dispose(bool disposing)
6262
logic.Unregister(NativeMap, Map);
6363
}
6464
}
65-
_cameraLogic.Unregister();
65+
_cameraLogic.Unregister();
66+
_uiSettingsLogic.Unregister();
6667

6768
var mkMapView = (MapView)Control;
6869
if(mkMapView!=null)

0 commit comments

Comments
 (0)