Fixed segmentation fault when no connectors installed
This commit is contained in:
parent
1b091987bb
commit
09fbe27651
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ namespace Controller {
|
|||
continue;
|
||||
}
|
||||
//ignore connectors that are not installed
|
||||
if ( !capabilities["connectors"].isMember(connName)){
|
||||
if (!capabilities.isMember("connectors") || !capabilities["connectors"].isMember(connName)){
|
||||
( *ait)["online"] = "Not installed";
|
||||
if (( *ait)["online"].asString() != prevOnline){
|
||||
Log("WARN", connName + " connector is enabled but doesn't exist on system! Ignoring connector.");
|
||||
|
|
Loading…
Add table
Reference in a new issue