mirror of https://github.com/apache/activemq.git
It's possible the prefered wireformat could be null
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@640684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c04d8c548d
commit
f9585fd6ab
|
@ -61,7 +61,9 @@ public class WireFormatNegotiator extends TransportFilter {
|
|||
// Setup the initial negociation timeout to be the same as the inital max inactivity delay specified on the wireformat
|
||||
// Does not make sense for us to take longer.
|
||||
try {
|
||||
setNegotiateTimeout(wireFormat.getPreferedWireFormatInfo().getMaxInactivityDurationInitalDelay());
|
||||
if( wireFormat.getPreferedWireFormatInfo() !=null ) {
|
||||
setNegotiateTimeout(wireFormat.getPreferedWireFormatInfo().getMaxInactivityDurationInitalDelay());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue