Commit bcb9c7ce authored by acud's avatar acud Committed by GitHub

api: fix bzz dereference when no updates posted (#1246)

parent 4016c051
......@@ -93,6 +93,12 @@ FETCH:
jsonhttp.NotFound(w, "feed not found")
return
}
if ch == nil {
logger.Debugf("bzz download: feed lookup: no updates")
logger.Error("bzz download: feed lookup")
jsonhttp.NotFound(w, "no update found")
return
}
ref, _, err := parseFeedUpdate(ch)
if err != nil {
logger.Debugf("bzz download: parse feed update: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment