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:
Zhihong Yu 2013-11-26 19:43:25 +00:00
parent 5c3bdc9141
commit b849239162
1 changed files with 1 additions and 1 deletions

View File

@ -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 {