提交 862b6e62 authored 作者: Thomas Mueller's avatar Thomas Mueller

In the server mode, when reading from a CLOB or BLOB, if the connection was…

In the server mode, when reading from a CLOB or BLOB, if the connection was closed, a NullPointerException could be thrown instead of an exception saying the connection is closed.
上级 13135e81
......@@ -764,6 +764,7 @@ public class SessionRemote extends SessionWithState implements DataHandler {
@Override
public synchronized int readLob(long lobId, byte[] hmac, long offset,
byte[] buff, int off, int length) {
checkClosed();
for (int i = 0, count = 0; i < transferList.size(); i++) {
Transfer transfer = transferList.get(i);
try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论