mirror of https://github.com/apache/jclouds.git
Added a null check for the 'application.host' servlet context parameter
This commit is contained in:
parent
fae29d217e
commit
7debc1e3d6
|
@ -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