shithub: mycel

Download patch

ref: 70388cdceb9f92b6a3578cca2cacb30beb036640
parent: bbbf75c1e8e624ddc05ec6901ebfff4d3750e215
author: Philip Silva <philip.silva@protonmail.com>
date: Fri Dec 25 12:50:00 EST 2020

nil handling

--- a/nodes/nodes.go
+++ b/nodes/nodes.go
@@ -72,6 +72,9 @@
 }
 
 func (n Node) Data() string {
+	if n.DomSubtree == nil {
+		return ""
+	}
 	return n.DomSubtree.Data
 }