Author: thomas.diesler(a)jboss.com
Date: 2007-07-27 02:52:56 -0400 (Fri, 27 Jul 2007)
New Revision: 4019
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
Log:
Prevent NPE in tools layer
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2007-07-27
06:31:03 UTC (rev 4018)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2007-07-27
06:52:56 UTC (rev 4019)
@@ -193,12 +193,15 @@
@Override
public String getEndpointAddress()
{
- return endpoint.getAddress();
+ return endpoint != null ? endpoint.getAddress() : null;
}
@Override
public void setEndpointAddress(String endpointAddress)
{
+ if (endpoint == null)
+ throw new IllegalStateException("Endpoint not available");
+
endpoint.setAddress(endpointAddress);
}
Show replies by date