HBASE-4980 Null pointer exception in HBaseClient receiveResponse

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1212167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-12-08 22:17:37 +00:00
parent 1f12fbf6d3
commit c1ae21cc93
1 changed files with 5 additions and 3 deletions

View File

@ -583,9 +583,11 @@ public class HBaseClient {
} }
int state = in.readInt(); // Read the state. Currently unused. int state = in.readInt(); // Read the state. Currently unused.
if (isError) { if (isError) {
if (call != null) {
//noinspection ThrowableInstanceNeverThrown //noinspection ThrowableInstanceNeverThrown
call.setException(new RemoteException( WritableUtils.readString(in), call.setException(new RemoteException(WritableUtils.readString(in),
WritableUtils.readString(in))); WritableUtils.readString(in)));
}
} else { } else {
Writable value = ReflectionUtils.newInstance(valueClass, conf); Writable value = ReflectionUtils.newInstance(valueClass, conf);
value.readFields(in); // read value value.readFields(in); // read value