Add history array size check from previous merge.
@@ -49,11 +49,13 @@ func (rc *remote) Manifest(repository Repository, tag string) (img Image, err er
Created time.Time `json:"created"`
}
var topmost v1image
+ if len(history) > 0 {
if err = json.Unmarshal([]byte(history[0].V1Compatibility), &topmost); err == nil {
if !topmost.Created.IsZero() {
img.CreatedAt = &topmost.Created
}
}
+ }
return
}
