[QFJ-772] NPE in DataDictionary::isTrailerField Created: 06/Feb/14  Updated: 02/Apr/15  Resolved: 19/Mar/14

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: 1.5.3
Fix Version/s: 1.6.0

Type: Bug Priority: Default
Reporter: Krzysztof Szalast Assignee: Christoph John
Resolution: Fixed Votes: 0
Labels: NullPointerException
Environment:

All



 Description   

In class DataDictionary: if expression "messageFields.get(TRAILER_ID)" returns null - NPE will be thrown.

I suggest to write this method just like isHeaderField method.

public boolean isTrailerField(int field) {
if (messageFields.get(TRAILER_ID) == null)

{ return false; }

return messageFields.get(TRAILER_ID).contains(field);
}



 Comments   
Comment by Christoph John [ 19/Mar/14 ]

http://sourceforge.net/p/quickfixj/code/1160/

Generated at Tue Apr 30 02:56:02 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.