Skip to content

Commit ad0c158

Browse files
committed
Merge branch 'pr/333'
2 parents 696151a + 877ab54 commit ad0c158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/src/main/org/bson/codecs/DocumentCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public DocumentCodec(final CodecRegistry registry, final BsonTypeClassMap bsonTy
8484
public DocumentCodec(final CodecRegistry registry, final BsonTypeClassMap bsonTypeClassMap, final Transformer valueTransformer) {
8585
this.registry = Assertions.notNull("registry", registry);
8686
this.bsonTypeClassMap = Assertions.notNull("bsonTypeClassMap", bsonTypeClassMap);
87-
this.idGenerator = Assertions.notNull("idGenerator", new ObjectIdGenerator());
87+
this.idGenerator = new ObjectIdGenerator();
8888
this.valueTransformer = valueTransformer != null ? valueTransformer : new Transformer() {
8989
@Override
9090
public Object transform(final Object value) {

0 commit comments

Comments
 (0)