Author: richard.opalka(a)jboss.com
Date: 2011-06-21 07:31:52 -0400 (Tue, 21 Jun 2011)
New Revision: 14597
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
Log:
fixing NPE
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2011-06-21
11:05:37 UTC (rev 14596)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2011-06-21
11:31:52 UTC (rev 14597)
@@ -98,7 +98,7 @@
Object implementor = endpoint.getImplementor();
// setup our invoker for http endpoints if invoker is not configured in
jbossws-cxf.xml DD
- boolean isHttpEndpoint = (endpoint.getAddress().substring(0,
5).toLowerCase().startsWith("http"));
+ boolean isHttpEndpoint = endpoint.getAddress() != null &&
endpoint.getAddress().substring(0, 5).toLowerCase().startsWith("http");
if ((endpoint.getInvoker() == null) && isHttpEndpoint)
{
endpoint.setInvoker(new JBossWSInvoker());
Show replies by date