Merge branch 'master' of git@github.com:jclouds/jclouds

* 'master' of git@github.com:jclouds/jclouds:
  Added a null check for the 'application.host' servlet context parameter
This commit is contained in:
Adrian Cole 2011-07-05 23:35:59 -07:00
commit 6b1720bfde
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ public class GuiceServletConfig extends GuiceServletContextListener {
} }
private static URI withUrl(ServletContext servletContext, String url) { private static URI withUrl(ServletContext servletContext, String url) {
return URI.create("http://" + servletContext.getInitParameter("application.host") return URI.create("http://" + checkNotNull(servletContext.getInitParameter("application.host"), "application.host")
+ servletContext.getContextPath() + url); + servletContext.getContextPath() + url);
} }