hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Templeton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14459) SerializationFactory shouldn't throw a NullPointerException if the serializations list is not defined
Date Fri, 26 May 2017 16:46:04 GMT

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

Daniel Templeton commented on HADOOP-14459:
-------------------------------------------

Thanks for the patch, [~nkollar].  Looks to me like that conditional should also be handling
the case where {{conf.get()}} returns null.  In that case you should get a warning.  The easiest
thing to do may be to pass {{""}} as the default to the {{conf.get()}} call.

> SerializationFactory shouldn't throw a NullPointerException if the serializations list
is not defined
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-14459
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14459
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Nandor Kollar
>            Assignee: Nandor Kollar
>            Priority: Minor
>         Attachments: HADOOP-14459.patch
>
>
> The SerializationFactory throws an NPE if CommonConfigurationKeys.IO_SERIALIZATIONS_KEY
is not defined in the config.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message