You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/06/19 06:45:42 UTC
svn commit: r548587 -
/webservices/axis2/trunk/java/modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp
Author: dims
Date: Mon Jun 18 21:45:41 2007
New Revision: 548587
URL: http://svn.apache.org/viewvc?view=rev&rev=548587
Log:
Fixed a potential NPE
Modified:
webservices/axis2/trunk/java/modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp
Modified: webservices/axis2/trunk/java/modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp?view=diff&rev=548587&r1=548586&r2=548587
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/src/main/webapp/axis2-web/include/httpbase.jsp Mon Jun 18 21:45:41 2007
@@ -10,9 +10,11 @@
public void jspInit() {
ServletContext context = this.getServletConfig().getServletContext();
ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
- Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
- if (parameter != null) {
- frontendHostUrl = (String) parameter.getValue();
+ if (configctx != null){
+ Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
+ if (parameter != null) {
+ frontendHostUrl = (String) parameter.getValue();
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org