Details
Description
Here is the excerpt from our application:
try {
...
Session.sendToTarget(message, sessionID);
...
}
catch (SessionNotFound e) {
...
}
catch (XXXException e) {
...
}
the sessionID was set to null due to some reason and we got a NullPointerException
java.lang.NullPointerException
at quickfix.Message.setSessionID(Message.java:423)
at quickfix.Session.sendToTarget(Session.java:454)
But in the sendToTaget method:
public static boolean sendToTarget(Message message, SessionID sessionID)
throws SessionNotFound
should the message.setSessionID(sessionID) line be put into the else block?