Skip to content

[Minor change] Avoid a NullPointerException... #48

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

Merged
merged 2 commits into from
Aug 22, 2017

Conversation

eranation
Copy link
Contributor

Very small and non critical suggestion...
Correct me if I'm wrong, but if we don't do an early exit after line 30 in the rare case of an exception, it will throw an NPE on line 36 (37 above)
Another way would be to throw new IOException(e) instead of printStacktrace
Great library by the way!

If we don't do an early exit after line 30, line 36 (37 above) will throw an NPE... 
(Another way would be to throw new IOException(e) instead of printStacktrace)
@sapessi
Copy link
Contributor

sapessi commented Jul 19, 2017

Instead of returning without writing anything in the output stream, I would vote for re-throwing the exception. API Gateway by itself will return a 502 and Lambda will handle it by forcing another cold start of the container to give us a second chance ;)

@sapessi
Copy link
Contributor

sapessi commented Aug 13, 2017

Hey @eranation, what do you think of my suggested change? Can you amend the pull request?

@eranation
Copy link
Contributor Author

eranation commented Aug 13, 2017 via email

@sapessi sapessi added this to the Release 0.7 milestone Aug 21, 2017
@sapessi
Copy link
Contributor

sapessi commented Aug 22, 2017

Somehow Travis refuses to run with this. Merging.

@sapessi sapessi merged commit 8111f62 into aws:master Aug 22, 2017
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

Successfully merging this pull request may close these issues.

2 participants