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 7a6a055 commit a65446aCopy full SHA for a65446a
src/test/com/mongodb/util/TestCase.java
@@ -51,7 +51,7 @@ public TestCase(){
51
public static synchronized MongoClientURI getMongoClientURI() {
52
if (mongoClientURI == null) {
53
String mongoURIProperty = System.getProperty(MONGODB_URI_SYSTEM_PROPERTY_NAME);
54
- String mongoURIString = mongoURIProperty == null || mongoURIProperty.isEmpty() ? DEFAULT_URI : mongoURIProperty;
+ String mongoURIString = mongoURIProperty == null || mongoURIProperty.length() == 0 ? DEFAULT_URI : mongoURIProperty;
55
mongoClientURI = new MongoClientURI(mongoURIString);
56
}
57
return mongoClientURI;
0 commit comments