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:
parent
1f12fbf6d3
commit
c1ae21cc93
|
@ -583,9 +583,11 @@ public class HBaseClient {
|
|||
}
|
||||
int state = in.readInt(); // Read the state. Currently unused.
|
||||
if (isError) {
|
||||
if (call != null) {
|
||||
//noinspection ThrowableInstanceNeverThrown
|
||||
call.setException(new RemoteException( WritableUtils.readString(in),
|
||||
call.setException(new RemoteException(WritableUtils.readString(in),
|
||||
WritableUtils.readString(in)));
|
||||
}
|
||||
} else {
|
||||
Writable value = ReflectionUtils.newInstance(valueClass, conf);
|
||||
value.readFields(in); // read value
|
||||
|
|
Loading…
Reference in New Issue