From 43a4bb64bd666905d18757b65134262b1417f62a Mon Sep 17 00:00:00 2001 From: Sean Hinchee Date: Mon, 11 Jun 2018 20:49:04 +0000 Subject: [PATCH] fixed the nil pointer bug crashing glenda occasionally --- x/mux/commits.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/mux/commits.go b/x/mux/commits.go index f1d9ca7b1733034bd32e9bee6371930eda31446d..602a361fe8e02daaf56b0b5ea63d94da38c83e16 100644 --- a/x/mux/commits.go +++ b/x/mux/commits.go @@ -20,10 +20,10 @@ func Listener() { // maybe only do at init step? str := Config.Feeds[p].Feed.UpdateURL feed, err := rss.Fetch(str) - if err != nil { + if feed != nil { Config.Feeds[p].Feed = *feed } else { - fmt.Println("Got a nil pointer for feed in commits for ", str, " as ", err) + //fmt.Println("Got a nil pointer for feed in commits for ", str, " as ", err) } //err := Config.Feeds[p].Feed.Update()