Skip to content

Commit 5f7b916

Browse files
committed
fix: nil pointer checking
1 parent 6c9cb03 commit 5f7b916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/finicky/src/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func setupVM(cfw *config.ConfigFileWatcher, embeddedFS embed.FS, namespace strin
450450
"defaultBrowser": configInfo.DefaultBrowser,
451451
"configPath": configInfo.ConfigPath,
452452
})
453-
} else {
453+
} else if configInfo != nil {
454454
window.SendMessageToWebView("config", map[string]interface{}{
455455
"handlers": 0,
456456
"rewrites": 0,

0 commit comments

Comments
 (0)