Skip to content

Commit

Permalink
[mongodb][hotfix] Fix NullPointerException when executing ddl operati…
Browse files Browse the repository at this point in the history
…on in MongoDB (apache#2107)

Co-authored-by: Jiabao Sun <jiabao.sun@xtransfer.cn>
  • Loading branch information
e-mhui and Jiabao-Sun committed Jun 12, 2023
1 parent bb60bfe commit 7cdeb0d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,9 @@ public void deserialize(SourceRecord record, Collector<RowData> out) throws Exce
Schema valueSchema = record.valueSchema();

OperationType op = operationTypeFor(record);

BsonDocument documentKey =
checkNotNull(
extractBsonDocument(
value, valueSchema, MongoDBEnvelope.DOCUMENT_KEY_FIELD));
extractBsonDocument(value, valueSchema, MongoDBEnvelope.DOCUMENT_KEY_FIELD);
BsonDocument fullDocument =
extractBsonDocument(value, valueSchema, MongoDBEnvelope.FULL_DOCUMENT_FIELD);

Expand Down

0 comments on commit 7cdeb0d

Please sign in to comment.