HBASE-10029 Addendum checks for args against null
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1545796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c3bdc9141
commit
b849239162
|
@ -264,7 +264,7 @@ public class HFileSystem extends FilterFileSystem {
|
|||
public Object invoke(Object proxy, Method method,
|
||||
Object[] args) throws Throwable {
|
||||
try {
|
||||
if (args.length == 0 && "close".equals(method.getName())) {
|
||||
if ((args == null || args.length == 0) && "close".equals(method.getName())) {
|
||||
if (cp instanceof Closeable) {
|
||||
((Closeable)cp).close();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue