Skip to content

Commit d28526e

Browse files
authored
fix(pd): pd raft-follower failed to get leader address due to npe (#2919)
1 parent c6d94b4 commit d28526e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/raft/RaftRpcClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public synchronized boolean init(final RpcOptions rpcOptions) {
6060
private <V> void internalCallAsyncWithRpc(final Endpoint endpoint,
6161
final RaftRpcProcessor.BaseRequest request,
6262
final FutureClosureAdapter<V> closure) {
63-
final InvokeContext invokeCtx = null;
63+
final InvokeContext invokeCtx = new InvokeContext();
6464
final InvokeCallback invokeCallback = new InvokeCallback() {
6565

6666
@Override

0 commit comments

Comments
 (0)