HDFS-5169. hdfs.c: translateZCRException: null pointer deref when translating some exceptions (Contributed by Colin Patrick McCabe)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-4949@1520679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Colin McCabe 2013-09-06 20:07:38 +00:00
parent f41f8b8842
commit 7a74ca3694
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,8 @@ HDFS-4949 (Unreleased)
HDFS-5163. Miscellaneous cache pool RPC fixes. (Contributed by Colin HDFS-5163. Miscellaneous cache pool RPC fixes. (Contributed by Colin
Patrick McCabe) Patrick McCabe)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES
HDFS-5169. hdfs.c: translateZCRException: null pointer deref when
translating some exceptions. (Contributed by Colin Patrick McCabe)

View File

@ -2270,7 +2270,7 @@ static int translateZCRException(JNIEnv *env, jthrowable exc)
ret = EPROTONOSUPPORT; ret = EPROTONOSUPPORT;
goto done; goto done;
} }
ret = printExceptionAndFree(env, jthr, PRINT_EXC_ALL, ret = printExceptionAndFree(env, exc, PRINT_EXC_ALL,
"hadoopZeroCopyRead: ZeroCopyCursor#read failed"); "hadoopZeroCopyRead: ZeroCopyCursor#read failed");
done: done:
free(className); free(className);