From cd467d9a77891e8f62b92b046b691e26d42b58db Mon Sep 17 00:00:00 2001 From: szywilliam Date: Wed, 29 May 2024 20:22:18 +0800 Subject: [PATCH] fix nullpointer on getState() --- .../main/java/org/apache/ratis/server/impl/RaftServerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java b/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java index 8a85488135..6472692504 100644 --- a/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java +++ b/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java @@ -1853,7 +1853,7 @@ CompletableFuture applyLogToStateMachine(ReferenceCountedObject s.truncate(logEntry.getIndex())); final ClientInvocationId invocationId = ClientInvocationId.valueOf(logEntry.getStateMachineLogEntry()); final CacheEntry cacheEntry = getRetryCache().getIfPresent(invocationId);