Github user phrocker commented on a diff in the pull request:
https://github.com/apache/nifi-minifi-cpp/pull/107#discussion_r118822078
--- Diff: libminifi/src/FlowController.cpp ---
@@ -90,8 +91,18 @@ FlowController::FlowController(
initialized_ = false;
root_ = nullptr;
+ memset(serial_number_, 0, 6);
+
protocol_ = new FlowControlProtocol(this, configure);
+ std::string listenerType;
+ // grab the value for configuration
+ if (configure->get(Configure::nifi_configuration_listener_type,
listenerType)) {
+ if (listenerType == "http") {
+ this->http_configuration_listener_ =
std::unique_ptr<minifi::HttpConfigurationListener>(new
minifi::HttpConfigurationListener(this, configure));
--- End diff --
You should be passing shared_from_this() to the instantiated object to
avoid issues with accessing the shared pointer as a raw pointer.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---