You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "peng.jianhua (JIRA)" <ji...@apache.org> on 2018/01/04 09:37:00 UTC
[jira] [Created] (RANGER-1946) if args.length=2 will case
java.lang.ArrayIndexOutOfBoundsException in HdfsClient.class
peng.jianhua created RANGER-1946:
------------------------------------
Summary: if args.length=2 will case java.lang.ArrayIndexOutOfBoundsException in HdfsClient.class
Key: RANGER-1946
URL: https://issues.apache.org/jira/browse/RANGER-1946
Project: Ranger
Issue Type: Bug
Components: plugins
Affects Versions: master
Reporter: peng.jianhua
Assignee: peng.jianhua
Priority: Minor
Fix For: master
"if args.length=2 " the following code
"String fileNameToMatch = (args.length == 2 ? null : args[2]);"
will case java.lang.ArrayIndexOutOfBoundsException in HdfsClient.class
Chang from "if (args.length < 2) " to "if (args.length < 3) "
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)