Commit 137d611c authored by Andre Freyssinet's avatar Andre Freyssinet

Bug fix: avoid NPE if messageIdPrefix is not defined (may be we have to

handle this for all parameters).
parent 4ba80e30
...@@ -419,14 +419,14 @@ public class FactoryParameters implements java.io.Serializable, Cloneable { ...@@ -419,14 +419,14 @@ public class FactoryParameters implements java.io.Serializable, Cloneable {
if (outLocalAddressRef != null) if (outLocalAddressRef != null)
outLocalAddress = (String) outLocalAddressRef.getContent(); outLocalAddress = (String) outLocalAddressRef.getContent();
RefAddr interceptorRef = ref.get(prefix + ".inInterceptors"); RefAddr interceptorRef = ref.get(prefix + ".inInterceptors");
if(interceptorRef!=null){ if(interceptorRef != null)
setListInInterceptorClassName((String)interceptorRef.getContent()); setListInInterceptorClassName((String)interceptorRef.getContent());
}
interceptorRef = ref.get(prefix + ".outInterceptors"); interceptorRef = ref.get(prefix + ".outInterceptors");
if(interceptorRef!=null){ if(interceptorRef != null)
setListOutInterceptorClassName((String)interceptorRef.getContent()); setListOutInterceptorClassName((String)interceptorRef.getContent());
} RefAddr messageIdPrefixRef = ref.get(prefix + ".messageIdPrefix");
messageIdPrefix = (String) ref.get(prefix + ".messageIdPrefix").getContent(); if (messageIdPrefixRef != null)
messageIdPrefix = (String) messageIdPrefixRef.getContent();
} }
public Hashtable code(Hashtable h, String prefix) { public Hashtable code(Hashtable h, String prefix) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment