From 1d54305551218114a175cf42d4bfd72d52470b48 Mon Sep 17 00:00:00 2001 From: Jonathan Dick Date: Wed, 21 Feb 2018 10:26:12 -0500 Subject: [PATCH] Instantiate the weak reference --- F50/Platform/Platform.android.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/F50/Platform/Platform.android.cs b/F50/Platform/Platform.android.cs index fa60966..b590306 100644 --- a/F50/Platform/Platform.android.cs +++ b/F50/Platform/Platform.android.cs @@ -24,7 +24,7 @@ namespace Xamarin.F50 class ActivityLifecycleContextListener : Java.Lang.Object, Application.IActivityLifecycleCallbacks { - WeakReference currentActivity = null; + WeakReference currentActivity = new WeakReference(null); public Context Context => Activity ?? Application.Context;