Skip to content
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

dot execution status incorrectly processed #133

Open
alxx opened this issue Dec 4, 2017 · 0 comments
Open

dot execution status incorrectly processed #133

alxx opened this issue Dec 4, 2017 · 0 comments

Comments

@alxx
Copy link

alxx commented Dec 4, 2017

There's a problem in output_from_command (lib/graphviz/utils.rb) in the condition:

if (status.nil? && (errors.nil? || errors.strip.empty?)) || status.zero?

The method zero? crashes when status is nil, a situation which escapes the first half of the condition.

One correct way to write it would be:

if (status.nil? && (errors.nil? || errors.strip.empty?)) || 0 == status

I know I should do this as a pull request, but for just a few characters it doesn't seem worth it. Maybe someone in the team can do it?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant