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

Amit Sela commented on HBASE-10061:
-----------------------------------

Currently, findOrCreateJar throws IOException if jar path is null or empty.
Ted suggested to add a configuration parameter that will allow to choose 
between logging a missing jar (like it used to be in previous versions, i.e., 
0.94.2) or throwing Exception (as it is now).

> TableMapReduceUtil.findOrCreateJar calls updateMap(null, ) resulting in 
> thrown NPE
> ----------------------------------------------------------------------------------
>
>                 Key: HBASE-10061
>                 URL: https://issues.apache.org/jira/browse/HBASE-10061
>             Project: HBase
>          Issue Type: Bug
>          Components: mapreduce
>    Affects Versions: 0.94.12
>            Reporter: Amit Sela
>
> TableMapReduceUtil.findOrCreateJar line 596:
> jar = getJar(my_class);
> updateMap(jar, packagedClasses);
> In case getJar returns null, updateMap will throw NPE.
> Should check null==jar before calling updateMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to