We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f4d6d5 commit 8f4e72bCopy full SHA for 8f4e72b
1 file changed
src/main/java/org/buddycloud/channelserver/Configuration.java
@@ -249,12 +249,15 @@ public boolean isLocalJID(JID jid) {
249
250
public String getDatabaseConnectionUrl() {
251
String url = this.getProperty("jdbc.proxool.driver-url");
252
- String user = this.getProperty("jdbc.user");
253
- if (null != user) {
+ if (this.containsKey("jdbc.user")) {
254
url +=
255
"?user=" + this.getProperty("jdbc.user") + "&password="
256
+ this.getProperty("jdbc.password");
257
}
258
return url;
259
+
260
+ public boolean containsKey(Object value) {
261
+ return conf.containsKey(value);
262
+ }
263
0 commit comments