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

Fix reading from stdin to handle when chunk is null #59

Merged
merged 1 commit into from
Aug 29, 2014

Conversation

joshma
Copy link
Contributor

@joshma joshma commented Aug 27, 2014

Looks like process.stdin.read() will return null if there is no data available (http://nodejs.org/api/stream.html#stream_readable_read_size) and the call to render will fail if null is passed in.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) when pulling ab37f10 on joshma:master into cb7ac90 on danielgtaylor:master.

@danielgtaylor danielgtaylor self-assigned this Aug 29, 2014
@danielgtaylor
Copy link
Owner

Thanks for the fix!

danielgtaylor added a commit that referenced this pull request Aug 29, 2014
Fix reading from stdin to handle when chunk is null. Fixes #59.
@danielgtaylor danielgtaylor merged commit ca69c1d into danielgtaylor:master Aug 29, 2014
@joshma
Copy link
Contributor Author

joshma commented Aug 29, 2014

No problem, if you could bump the npm version that'd be appreciated. 😄

@danielgtaylor
Copy link
Owner

@joshma 1.16.1 is released, which includes this fix.

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

Successfully merging this pull request may close these issues.

3 participants