diff --git a/src/main/java/com/sonyericsson/jenkins/plugins/bfa/db/MongoDBKnowledgeBase.java b/src/main/java/com/sonyericsson/jenkins/plugins/bfa/db/MongoDBKnowledgeBase.java index 1a0042a9..c4cb505a 100644 --- a/src/main/java/com/sonyericsson/jenkins/plugins/bfa/db/MongoDBKnowledgeBase.java +++ b/src/main/java/com/sonyericsson/jenkins/plugins/bfa/db/MongoDBKnowledgeBase.java @@ -1022,7 +1022,7 @@ public Descriptor getDescriptor() { */ private MongoClient getMongoConnection() { if (mongo == null) { - if (password != null && password.getPlainText() != null) { + if (password != null && Util.fixEmpty(password.getPlainText()) != null) { char[] pwd = password.getPlainText().toCharArray(); MongoCredential credential = MongoCredential.createCredential(userName, dbName, pwd);