mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
Fixed potential nullpointer
This commit is contained in:
parent
2be8f6692b
commit
a44e8c97d5
@ -903,7 +903,9 @@ void handleCloud() {
|
||||
unsigned long handleMqtt() {
|
||||
unsigned long start = millis();
|
||||
if(!networkConnected) {
|
||||
mqttHandler->disconnect();
|
||||
if(mqttHandler != NULL) {
|
||||
mqttHandler->disconnect();
|
||||
}
|
||||
} else if (mqttEnabled || config.isMqttChanged()) {
|
||||
if(mqttHandler == NULL || !mqttHandler->connected() || config.isMqttChanged()) {
|
||||
if(mqttHandler != NULL && config.isMqttChanged()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user