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:
Hiram R. Chirino 2008-03-25 03:36:07 +00:00
parent c04d8c548d
commit f9585fd6ab
1 changed files with 3 additions and 1 deletions

View File

@ -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) {
}
}