Skip to content

Commit 43dd2bd

Browse files
abuchanan-airbyteAirbyte Engineering
andcommitted
fix: handle null workspace ID on listConnectionEventsMinimal (#16955)
Co-authored-by: Airbyte Engineering <[email protected]>
1 parent 39b6bcc commit 43dd2bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

airbyte-commons-server/src/main/java/io/airbyte/commons/server/handlers/ConnectionsHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,10 @@ public void backfillConnectionEvents(final ConnectionEventsBackfillRequestBody c
15401540
}
15411541

15421542
public ConnectionEventListMinimal listConnectionEventsMinimal(ConnectionEventsListMinimalRequestBody requestBody) throws IOException {
1543+
if (requestBody.getWorkspaceId() == null) {
1544+
return new ConnectionEventListMinimal();
1545+
}
1546+
15431547
// Get all connection IDs for the workspace using the lightweight method
15441548
final List<UUID> connectionIds = connectionService.listConnectionIdsForWorkspace(requestBody.getWorkspaceId());
15451549

0 commit comments

Comments
 (0)