Author: alessio.soldano(a)jboss.com
Date: 2008-11-18 03:42:58 -0500 (Tue, 18 Nov 2008)
New Revision: 8748
Modified:
stack/native/branches/asoldano/modules/core/src/main/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java
Log:
Prevent NPE
Modified:
stack/native/branches/asoldano/modules/core/src/main/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java
===================================================================
---
stack/native/branches/asoldano/modules/core/src/main/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java 2008-11-18
08:42:38 UTC (rev 8747)
+++
stack/native/branches/asoldano/modules/core/src/main/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java 2008-11-18
08:42:58 UTC (rev 8748)
@@ -117,8 +117,11 @@
// copy headers
Set<QName> headers = new HashSet<QName>();
- for (QName header : info.getHeaders())
- headers.add(header);
+ if (info.getHeaders() != null)
+ {
+ for (QName header : info.getHeaders())
+ headers.add(header);
+ }
handler.setSoapHeaders(headers);
// copy init params
Show replies by date