Details
-
Type: Bug
-
Status: Closed
-
Priority: Default
-
Resolution: Fixed
-
Affects Version/s: 1.5.3
-
Fix Version/s: 1.6.0
-
Component/s: None
-
Labels:
-
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 messageFields.get(TRAILER_ID).contains(field);
}