mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 16:17:30 +00:00
Merged msbg array fix.
Fixed #558 for null pointer on startup without habridge.conf
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.bwssystems.HABridge</groupId>
|
<groupId>com.bwssystems.HABridge</groupId>
|
||||||
<artifactId>ha-bridge</artifactId>
|
<artifactId>ha-bridge</artifactId>
|
||||||
<version>4.3.0</version>
|
<version>4.3.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HA Bridge</name>
|
<name>HA Bridge</name>
|
||||||
|
|||||||
@@ -435,11 +435,14 @@ public class BridgeSettingsDescriptor {
|
|||||||
|
|
||||||
public void setupInternalTestUser() {
|
public void setupInternalTestUser() {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
if(whitelist != null) {
|
||||||
for (String key : whitelist.keySet()) {
|
for (String key : whitelist.keySet()) {
|
||||||
if(key.equals(DEFAULT_INTERNAL_USER))
|
if(key.equals(DEFAULT_INTERNAL_USER)) {
|
||||||
found = true;
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!found) {
|
if(!found) {
|
||||||
newWhitelistUser(DEFAULT_INTERNAL_USER, DEFAULT_USER_DESCRIPTION);
|
newWhitelistUser(DEFAULT_INTERNAL_USER, DEFAULT_USER_DESCRIPTION);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user