Skip to content

Commit 8708b92

Browse files
Gaspard Petitjyemin
authored andcommitted
Fix: when the update is null, the exception thrown in FindAndUpdateOperation should not mention that decoder is null
Signed-off-by: Gaspard Petit <[email protected]>
1 parent af139c8 commit 8708b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/main/com/mongodb/internal/operation/FindAndUpdateOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public FindAndUpdateOperation(final MongoNamespace namespace, final WriteConcern
109109
public FindAndUpdateOperation(final MongoNamespace namespace, final WriteConcern writeConcern, final boolean retryWrites,
110110
final Decoder<T> decoder, final BsonDocument update) {
111111
super(namespace, writeConcern, retryWrites, decoder);
112-
this.update = notNull("decoder", update);
112+
this.update = notNull("update", update);
113113
this.updatePipeline = null;
114114
}
115115

0 commit comments

Comments
 (0)