New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo last_sync is nil, crashes cvmanager #25

Closed
jberry opened this Issue Feb 3, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@jberry
Copy link
Contributor

jberry commented Feb 3, 2017

if repo.has_key?('last_sync') and repo['last_sync'].has_key?('ended_at') and repo['last_sync']['ended_at']

If repo['last_sync'] is nil, that code fails. The key itself exists, but it's nil. Need to add a check if last_sync is nil before doing the last_sync.has_key?

@evgeni evgeni closed this in a87df29 Mar 14, 2017

@evgeni evgeni self-assigned this Mar 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment