szaszm commented on code in PR #1388: URL: https://github.com/apache/nifi-minifi-cpp/pull/1388#discussion_r946885266
########## libminifi/src/FlowController.cpp: ########## @@ -558,19 +552,20 @@ std::vector<state::StateController*> FlowController::getAllProcessorControllers( return controllerVec; } -state::StateController* FlowController::getProcessorController(const std::string& name, const std::function<std::unique_ptr<state::ProcessorController>(core::Processor&)>& controllerFactory) { - auto* processor = root_->findProcessorByName(name); - if (processor == nullptr) { - logger_->log_error("Could not get processor controller for requested name \"%s\", because processor was not found either", name); - return nullptr; - } - - // reference to the existing or newly created controller - auto& foundController = processor_to_controller_[processor->getUUID()]; - if (!foundController) { - foundController = controllerFactory(*processor); - } - return foundController.get(); +state::StateController* FlowController::getProcessorController(const std::string& id_or_name, const std::function<std::unique_ptr<state::ProcessorController>(core::Processor&)>& controllerFactory) { Review Comment: This was an oversight, fixed in [4d699a7](https://github.com/apache/nifi-minifi-cpp/pull/1388/commits/4d699a7c00834fe02e7775c6e362a5cc96447c62). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org