File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
core/src/main/java/com/scalar/db/transaction/consensuscommit Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments