Skip to content

Commit

Permalink
small fix: LaTransaction@toString() before init()
Browse files Browse the repository at this point in the history
  • Loading branch information
jflute committed Sep 27, 2024
1 parent 832f670 commit be4328e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/lastaflute/jta/core/LaTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ protected String toCauseHash(Throwable cause) {
// ==============
@Override
public String toString() {
return xid.toString();
return xid != null ? xid.toString() : "(the transaction not initialized yet)";
}

// ===================================================================================
Expand Down

0 comments on commit be4328e

Please sign in to comment.