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,8 +119,8 @@ public class GuiceServletConfig extends GuiceServletContextListener {
|
|||
}
|
||||
|
||||
private static URI withUrl(ServletContext servletContext, String url) {
|
||||
return URI.create("http://" + servletContext.getInitParameter("application.host")
|
||||
+ servletContext.getContextPath() + url);
|
||||
return URI.create("http://" + checkNotNull(servletContext.getInitParameter("application.host"), "application.host")
|
||||
+ servletContext.getContextPath() + url);
|
||||
}
|
||||
|
||||
private Properties loadJCloudsProperties(
|
||||
|
|
Loading…
Reference in New Issue