You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Amit Sela (JIRA)" <ji...@apache.org> on 2013/12/02 09:34:35 UTC
[jira] [Updated] (HBASE-10061) TableMapReduceUtil.findOrCreateJar
calls updateMap(null, ) resulting in thrown NPE
[ https://issues.apache.org/jira/browse/HBASE-10061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Sela updated HBASE-10061:
------------------------------
Attachment: HBASE-10061.patch
I'm adding a patch to check if jar is null or empty in updateMap and to return null instead of throwing Exception in case jar was not found.
> 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
> Attachments: HBASE-10061.patch
>
>
> 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)