[QFJ-117] No error message (Null pointer exception thrown) on unexpected message (SingleThreadedEventHandler) (easy to fix) Created: 14/Dec/06 Updated: 12/Apr/07 Resolved: 11/Feb/07 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.0.4 |
Fix Version/s: | 1.1.0 |
Type: | Bug | Priority: | Minor |
Reporter: | Christopher Hurst | Assignee: | Steve Bate |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
Windows (not hardware specific) |
Description |
(n.b. I only use the SingleThreadedEventHandler) The problem ... From SingleThreadEventHandler, the code calling it does not prevent QuickSession = null, this causes a null pointer exception which is caught and an attempt is made to print an error but the catch queries the null object which goes bang again. try { } catch (Throwable e) { LogUtil.logThrowable(quickfixSession.getSessionID(), e.getMessage(), e); }Real World Example ... In mina.acceptor.AcceptorioHandler, method processMessage change the last line from .... eventHandlingStrategy.onMessage(qfSession, message); to .... if (qfSession==null) |
Comments |
Comment by Steve Bate [ 11/Feb/07 ] |
I've added the patch. Thanks! |