diff options
Diffstat (limited to 'src/associations.cpp')
-rw-r--r-- | src/associations.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/associations.cpp b/src/associations.cpp index 6982b52..b4c0fae 100644 --- a/src/associations.cpp +++ b/src/associations.cpp @@ -156,18 +156,17 @@ void associationChanged(sdbusplus::asio::object_server& objectServer, std::string endpoint; std::tie(forward, reverse, endpoint) = association; + if (endpoint.empty()) + { + std::cerr << "Found invalid association on path " << path << "\n"; + continue; + } if (forward.size()) { objects[path + "/" + forward].emplace(endpoint); } if (reverse.size()) { - if (endpoint.empty()) - { - std::cerr << "Found invalid association on path " << path - << "\n"; - continue; - } objects[endpoint + "/" + reverse].emplace(path); } } |