[JAVA-2335] Providing a null value in a List<ServerAddress> throws a NPE Created: 06/Oct/16  Updated: 04/Nov/16  Resolved: 04/Nov/16

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 3.0.0
Fix Version/s: 3.4.0

Type: Bug Priority: Minor - P4
Reporter: Ross Lawley Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Case:

 Description   

Currently the MongoClient null checks the list but not the values in the list. This can lead to a NPE.



 Comments   
Comment by Githook User [ 04/Nov/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2335: Null value in ServerAddress list should cause an IllegalArgumentException expection rather than a NullPointerException
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/63cfd5b7ec704fe109f62d9ba1539eaf05853871

Generated at Thu Feb 08 08:56:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.