mirror of https://github.com/apache/jclouds.git
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:
commit
6b1720bfde
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue