You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2015/01/08 01:18:34 UTC
[jira] [Commented] (HIVE-9301) Potential null dereference in
MoveTask#createTargetPath()
[ https://issues.apache.org/jira/browse/HIVE-9301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268564#comment-14268564 ]
Xuefu Zhang commented on HIVE-9301:
-----------------------------------
+1
> Potential null dereference in MoveTask#createTargetPath()
> ---------------------------------------------------------
>
> Key: HIVE-9301
> URL: https://issues.apache.org/jira/browse/HIVE-9301
> Project: Hive
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
> Attachments: HIVE-9301.patch
>
>
> {code}
> if (mkDirPath != null & !fs.exists(mkDirPath)) {
> {code}
> '&&' should be used instead of single ampersand.
> If mkDirPath is null, fs.exists() would still be called - resulting in NPE.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)