Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2685

Prevent possible NullpointerException in EventHelper.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.5.1
    • None
    • Master
    • None

    Description

      In org/apache/flume/event/EventHelper.java
      Line 45 indicates that 'event' can be null but in line 71 it is used anyway (event.getHeaders()).
      Change line 71 to
      return "

      { headers:" + (event==null?"null":event.getHeaders()) + " body:" + buffer + " }

      ";
      instead?

      Attachments

        1. FLUME-2685.patch
          1 kB
          Krishnan Chandra

        Activity

          People

            Unassigned Unassigned
            martinschaef Martin Schäf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: