Skip to content

Commit 0340f54

Browse files
committed
Ensure that requestIdCreator is non-null
1 parent 4c86d6e commit 0340f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ interface SessionTransaction {
149149
this.errorHandler = createErrorHandler(spanner.getOptions());
150150
this.requestIdCreator = requestIdCreator;
151151
if (this.requestIdCreator == null) {
152-
this.requestIdCreator = new XGoogSpannerRequestId.NoopRequestIdCreator();
152+
throw new IllegalStateException("requestIdCreator must be non-null");
153153
}
154154
}
155155

0 commit comments

Comments
 (0)