We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6441b5d commit 1101a2dCopy full SHA for 1101a2d
src/main/com/mongodb/DB.java
@@ -421,7 +421,6 @@ public com.mongodb.WriteConcern getWriteConcern(){
421
* @param preference Read Preference to use
422
*/
423
public void setReadPreference( ReadPreference preference ){
424
- if ( preference == null ) throw new IllegalArgumentException();
425
_readPref = preference;
426
}
427
0 commit comments