Skip to content

Commit

Permalink
xLightsSequencer#5163 Don't crash if no FPP configured
Browse files Browse the repository at this point in the history
  • Loading branch information
cybercop23 committed Jan 27, 2025
1 parent 12928d8 commit dc97c96
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions xLights/controllers/FPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3843,13 +3843,15 @@ void FPP::MapToFPPInstances(Discovery& discovery, std::list<FPP*>& instances, Ou
};
for (auto& it : discovery.GetOutputManager()->GetControllers()) {
auto c = dynamic_cast<ControllerEthernet*>(it);
configuredIPs[c->GetResolvedIP()] = c->GetIP();
if (!c->GetFPPProxy().empty()) {
auto ip = ip_utils::ResolveIP(c->GetFPPProxy());
allProxyList.insert(ip);
}
if (Controller::DecodeActiveState(c->GetActive()) == "Active") {
foundActiveController = true;
if (c != nullptr) {
configuredIPs[c->GetResolvedIP()] = c->GetIP();
if (!c->GetFPPProxy().empty()) {
auto ip = ip_utils::ResolveIP(c->GetFPPProxy());
allProxyList.insert(ip);
}
if (Controller::DecodeActiveState(c->GetActive()) == "Active") {
foundActiveController = true;
}
}
}
for (auto res : discovery.GetResults()) {
Expand Down

0 comments on commit dc97c96

Please sign in to comment.