shithub: mycel

Download patch

ref: 36c2256362c7ed26713b98b5cb6e9c6f3138448f
parent: 71869fcb56f7cb931e414c11be16165d22174d81
author: Philip Silva <[email protected]>
date: Thu Oct 14 13:46:44 EDT 2021

add nil check for scroller

--- a/browser/browser.go
+++ b/browser/browser.go
@@ -1571,7 +1571,9 @@
 			}
 		})
 		PrintTree(b.Website.UI)
-		scroller.Offset = b.History.Scroll()
+		if scroller != nil {
+			scroller.Offset = b.History.Scroll()
+		}
 		dui.MarkLayout(dui.Top.UI)
 		dui.MarkDraw(dui.Top.UI)
 		dui.Render()