Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-772

NPE in DataDictionary::isTrailerField

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.6.0
    • Component/s: None
    • 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);
      }

        Attachments

          Activity

            People

            • Assignee:
              chrjohn Christoph John
              Reporter:
              kasopey Krzysztof Szalast
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: