Skip to content

Commit

Permalink
Merge pull request Netflix#307 from nurkiewicz/patch-1
Browse files Browse the repository at this point in the history
Avoid NPE when 'origin' parameter not present
  • Loading branch information
benjchristensen committed Sep 4, 2014
2 parents fa6b255 + c00e9ce commit efb889b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
if (origin == null) {
response.setStatus(500);
response.getWriter().println("Required parameter 'origin' missing. Example: 107.20.175.135:7001");
return;
}
origin = origin.trim();

Expand Down

0 comments on commit efb889b

Please sign in to comment.