diff --git a/HybridWebView/HybridWebView.cs b/HybridWebView/HybridWebView.cs index 8e1d565..4ce00d0 100644 --- a/HybridWebView/HybridWebView.cs +++ b/HybridWebView/HybridWebView.cs @@ -62,6 +62,12 @@ protected override async void OnHandlerChanged() await InitializeHybridWebView(); + // HybridWebViewInitialized assumes Handler != null + if (Handler == null) + { + return; + } + HybridWebViewInitialized?.Invoke(this, new HybridWebViewInitializedEventArgs() { #if ANDROID || IOS || MACCATALYST || WINDOWS