Commits

hindlemail committed 308a3ed

Add null check.

Comments (0)

Files changed (1)

Skybound.Gecko/NavigateFinishedNotifier.cs

 		{
 			GeckoDocument document = (m_browser as GeckoWebBrowser).Document;
 			// if body contains something assume navigation complete.
-			if (!m_loadEventHandled || document.Body == null || document.ChildNodes.Count == 0)
+			if (!m_loadEventHandled || document == null || document.Body == null || document.ChildNodes.Count == 0)
 				return;
 
 			Application.Idle -= HandleApplicationIdle;