[ 
https://issues.apache.org/jira/browse/FLUME-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Krishnan Chandra updated FLUME-2685:
------------------------------------
    Attachment: FLUME-2685.patch

> Prevent possible NullpointerException in EventHelper.java
> ---------------------------------------------------------
>
>                 Key: FLUME-2685
>                 URL: https://issues.apache.org/jira/browse/FLUME-2685
>             Project: Flume
>          Issue Type: Improvement
>          Components: Master
>    Affects Versions: v1.5.1
>            Reporter: Martin Schäf
>            Priority: Minor
>         Attachments: FLUME-2685.patch
>
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to