This is an automated email from the ASF dual-hosted git repository.

ifesdjeen pushed a commit to branch cep-15-accord
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit 8a7445204c93749b90ce02152ecec0a112c46abd
Author: Alex Petrov <[email protected]>
AuthorDate: Wed Dec 4 10:54:40 2024 +0100

    Fix SimulatedDepsTest
    
    Patch by Alex Petrov; reviewed by Benedict Elliott Smith for CASSANDRA-20114
---
 src/java/org/apache/cassandra/service/accord/IJournal.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/java/org/apache/cassandra/service/accord/IJournal.java 
b/src/java/org/apache/cassandra/service/accord/IJournal.java
index a96bfc7afd..66b1f65ce5 100644
--- a/src/java/org/apache/cassandra/service/accord/IJournal.java
+++ b/src/java/org/apache/cassandra/service/accord/IJournal.java
@@ -31,6 +31,8 @@ public interface IJournal extends Journal
     default SavedCommand.MinimalCommand loadMinimal(int commandStoreId, TxnId 
txnId, SavedCommand.Load load, RedundantBefore redundantBefore, DurableBefore 
durableBefore)
     {
         Command command = loadCommand(commandStoreId, txnId, redundantBefore, 
durableBefore);
+        if (command == null)
+            return null;
         return new SavedCommand.MinimalCommand(command.txnId(), 
command.saveStatus(), command.participants(), command.durability(), 
command.executeAt(), command.writes());
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to