Skip to content

Commit c2abca5

Browse files
author
Holden Karau
committed
Logger in deteremining fetchMaxBsonObjectSize doesn't like null, giving it a string so it doesn't cause a java.lang.NullPointerException
1 parent a7013b1 commit c2abca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/DBTCPConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ int fetchMaxBsonObjectSize() {
414414
maxBsonObjectSize = Bytes.MAX_OBJECT_SIZE;
415415
}
416416
} catch (Exception e) {
417-
_logger.log(Level.WARNING, null, e);
417+
_logger.log(Level.WARNING, "Exception determining maxBSON size using"+maxBsonObjectSize, e);
418418
} finally {
419419
port.getPool().done(port);
420420
}

0 commit comments

Comments
 (0)