Handle nil values in toString

This commit is contained in:
Stu Leak 2025-12-23 21:25:41 -05:00
parent e1af8181c0
commit c883a92155

View File

@ -1155,6 +1155,9 @@ func (s *appState) stopPreview() {
}
func toString(v interface{}) string {
if v == nil {
return ""
}
switch t := v.(type) {
case string:
return t