You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Stig Rohde Døssing (JIRA)" <ji...@apache.org> on 2018/04/28 11:26:00 UTC

[jira] [Commented] (STORM-3043) NullPointerException thrown in SimpleRecordTranslator.apply()

    [ https://issues.apache.org/jira/browse/STORM-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457548#comment-16457548 ] 

Stig Rohde Døssing commented on STORM-3043:
-------------------------------------------

Thanks [~cleroux], merged to master, 1.x-branch, 1.1.x-branch and 1.0.x-branch. Keep up the good work.

> NullPointerException thrown in SimpleRecordTranslator.apply()
> -------------------------------------------------------------
>
>                 Key: STORM-3043
>                 URL: https://issues.apache.org/jira/browse/STORM-3043
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-kafka-client
>    Affects Versions: 2.0.0, 1.1.2, 1.0.6, 1.2.1
>            Reporter: Cedric Le Roux
>            Assignee: Cedric Le Roux
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0, 1.1.3, 1.0.7, 1.2.2
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When using a SimpleRecordTranslator with a user-defined translator Func, a NullPointerException will be thrown if Func.apply() returns null. A null List object is a valid return value from apply() if the ConsumerRecord is invalid.
> SimpleRecordTranslator does not check for a null result before attempting to call the addAll method of the List.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)