Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

panic in hydrateJob #660

Merged
merged 1 commit into from
Jul 14, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion registry/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (r *EtcdRegistry) Jobs() ([]job.Job, error) {
}

j, err := r.getJobFromJSON(node.Value)
if err != nil {
if j == nil || err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cf line 114

log.Infof("Unable to parse Job in Registry at key %s", node.Key)
continue
}
Expand Down