未验证 提交 6984bbc6 编写于 作者: B Brandon Fergerson 提交者: GitHub

Silent NPE fix in persistent process (#9909)

Just avoid NPE in codes.
上级 42f3396b
......@@ -86,7 +86,9 @@ public class BatchProcessEsDAO extends EsDAO implements IBatchDAO {
@Override
public void endOfFlush() {
// Flush forcedly due to this kind of metrics has been pushed into the bulk processor.
bulkProcessor.flush();
// Flush forcibly due to this kind of metrics has been pushed into the bulk processor.
if (bulkProcessor != null) {
bulkProcessor.flush();
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册