Skip to content

Commit

Permalink
mqtt credentials are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Mar 4, 2024
1 parent 5a58c7a commit e1190e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/class/cv/io/mqtt/Client.js
Expand Up @@ -196,13 +196,13 @@ qx.Class.define('cv.io.mqtt.Client', {
if (this._backendUrl.username !== '') {
options.userName = this._backendUrl.username;
}
if (credentials.username !== '') {
if (credentials && credentials.username !== '') {
options.userName = credentials.username;
}
if (this._backendUrl.password !== '') {
options.password = this._backendUrl.password;
}
if (credentials.password !== '') {
if (credentials && credentials.password !== '') {
options.password = credentials.password;
}

Expand Down

0 comments on commit e1190e2

Please sign in to comment.