Skip to content

Commit

Permalink
Mongo operationType NPE prevention (hazelcast#25760)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszGaweda committed Oct 19, 2023
1 parent 5533b5f commit ac3862e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private JetSqlRow convertStreamDocToRow(ChangeStreamDocument<Document> changeStr
row[index] = fromDoc;
}
}
addIfInProjection(changeStreamDocument.getOperationType().getValue(), "operationType", row);
addIfInProjection(changeStreamDocument.getOperationTypeString(), "operationType", row);
addIfInProjection(changeStreamDocument.getResumeToken().toString(), "resumeToken", row);
addIfInProjection(LocalDateTime.ofInstant(Instant.ofEpochMilli(ts), systemDefault()), "ts", row);
addIfInProjection(bsonDateTimeToLocalDateTime(changeStreamDocument.getWallTime()), "wallTime", row);
Expand Down

0 comments on commit ac3862e

Please sign in to comment.