summaryrefslogtreecommitdiff
path: root/patchset.Get.go
diff options
context:
space:
mode:
Diffstat (limited to 'patchset.Get.go')
-rw-r--r--patchset.Get.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/patchset.Get.go b/patchset.Get.go
index 91d3bdd..5904914 100644
--- a/patchset.Get.go
+++ b/patchset.Get.go
@@ -44,6 +44,15 @@ func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) {
log.Info("new patchset", pset.Name, pset.Uuid)
pset.State = "new"
foundnew = true
+ if pset == nil {
+ log.Warn("OH NO! pset == nil")
+ continue
+ }
+ if f.Patchsets == nil {
+ log.Warn("OH NO! f.Patchsets == nil")
+ continue
+ }
+ f.Patchsets.Append(pset)
} else {
log.Info("patchset already on disk", found.Name, found.State)
pset.State = found.State
@@ -53,7 +62,6 @@ func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) {
}
}
if foundnew {
- log.Info("should save these here")
f.SavePatchsets()
}
}