Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
litiliu committed Jan 20, 2025
1 parent ffd94d9 commit fc68bf7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ private void createDataEvents(PostgresSnapshotContext snapshotContext, TableId t
EventDispatcher.SnapshotReceiver snapshotReceiver =
dispatcher.getSnapshotChangeEventReceiver();
log.debug("Snapshotting table {}", tableId);
TableId newTableId = new TableId(tableId.catalog(), tableId.schema(), tableId.table());
createDataEventsForTable(
snapshotContext, snapshotReceiver, databaseSchema.tableFor(tableId));
snapshotContext, snapshotReceiver, databaseSchema.tableFor(newTableId));
snapshotReceiver.completeSnapshot();
}

Expand Down

0 comments on commit fc68bf7

Please sign in to comment.