You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Bessenyei Balázs Donát (JIRA)" <ji...@apache.org> on 2016/08/03 20:14:20 UTC
[jira] [Commented] (FLUME-2966) NULL text in a TextMessage from a
JMS source in Flume can lead to NPE
[ https://issues.apache.org/jira/browse/FLUME-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15406548#comment-15406548 ]
Bessenyei Balázs Donát commented on FLUME-2966:
-----------------------------------------------
Hi [~sahuja],
Would you like to provide a patch for this issue or would you like me to work with you on this one?
> NULL text in a TextMessage from a JMS source in Flume can lead to NPE
> ---------------------------------------------------------------------
>
> Key: FLUME-2966
> URL: https://issues.apache.org/jira/browse/FLUME-2966
> Project: Flume
> Issue Type: Bug
> Reporter: Siddharth Ahuja
>
> Code at https://github.com/apache/flume/blob/trunk/flume-ng-sources/flume-jms-source/src/main/java/org/apache/flume/source/jms/DefaultJMSMessageConverter.java#L103 does not check for a NULL text in a TextMessage from a Flume JMS source. This can lead to a NullPointerException here: {code}textMessage.getText().getBytes(charset){code} while trying to de-reference a null text from the textmessage.
> We should probably skip these like the NULL Objects in the ObjectMessage just below at: https://github.com/apache/flume/blob/trunk/flume-ng-sources/flume-jms-source/src/main/java/org/apache/flume/source/jms/DefaultJMSMessageConverter.java#L107.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)