Skip to content

Commit e045ad5

Browse files
committed
Fix
1 parent 1281a6b commit e045ad5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/src/main/java/com/scalar/db/transaction/consensuscommit/Coordinator.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,14 @@ public State(Result result) throws CoordinatorException {
403403
id = result.getText(Attribute.ID);
404404
state = TransactionState.getInstance(result.getInt(Attribute.STATE));
405405
createdAt = result.getBigInt(Attribute.CREATED_AT);
406-
String childIdsStr = result.getText(Attribute.CHILD_IDS);
407-
if (childIdsStr != null) {
408-
childIds = Splitter.on(CHILD_IDS_DELIMITER).omitEmptyStrings().splitToList(childIdsStr);
406+
407+
if (result.contains(Attribute.CHILD_IDS)) {
408+
String childIdsStr = result.getText(Attribute.CHILD_IDS);
409+
if (childIdsStr != null) {
410+
childIds = Splitter.on(CHILD_IDS_DELIMITER).omitEmptyStrings().splitToList(childIdsStr);
411+
} else {
412+
childIds = EMPTY_CHILD_IDS;
413+
}
409414
} else {
410415
childIds = EMPTY_CHILD_IDS;
411416
}

0 commit comments

Comments
 (0)