[
https://issues.apache.org/jira/browse/FLUME-1892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883765#comment-13883765
]
ASF subversion and git services commented on FLUME-1892:
--------------------------------------------------------
Commit 8467f8e315ba4f2004e0b7e1711c70367d5b0b45 in branch refs/heads/flume-1.5
from [~hshreedharan]
[ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=8467f8e ]
FLUME-1892. Fix NullPointerException in IRC Sink.
(Ashish Paliwal via Hari Shreedharan)
> IRC Sink NPE
> ------------
>
> Key: FLUME-1892
> URL: https://issues.apache.org/jira/browse/FLUME-1892
> Project: Flume
> Issue Type: Bug
> Components: Docs, Sinks+Sources
> Affects Versions: v1.4.0
> Environment: Ubuntu 12.10
> Reporter: Jeff Collell
> Assignee: Ashish Paliwal
> Priority: Minor
> Labels: patch
> Attachments: FLUME-1281-1892-0.patch, FLUME-1892-0.patch,
> FLUME-1892-1.patch
>
>
> IRCSink.java does not initialize splitlines to a default value if it is not
> contained in the config. It does check if splitChars is NULL, and initialize
> it to the default constant, but it does not do so for splitlines.
> The user guide found
> [here|http://flume.apache.org/FlumeUserGuide.html#irc-sink] does show that
> splitlines has no default value, but it is not bold (indicating it must be
> defined in the config).
> Obviously if splitlines is not configured, you'll get a NPE when sendLine is
> called, since it does not check for NULL values either.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)