adam-markovics commented on code in PR #1432: URL: https://github.com/apache/nifi-minifi-cpp/pull/1432#discussion_r1042119988
########## extensions/mqtt/processors/PublishMQTT.cpp: ########## @@ -34,76 +34,229 @@ void PublishMQTT::initialize() { setSupportedRelationships(relationships()); } -void PublishMQTT::onSchedule(const std::shared_ptr<core::ProcessContext> &context, const std::shared_ptr<core::ProcessSessionFactory> &factory) { +void PublishMQTT::readProperties(const std::shared_ptr<core::ProcessContext>& context) { + if (!context->getProperty(Topic).has_value()) { + logger_->log_error("PublishMQTT: could not get Topic"); + } Review Comment: Update: if it's empty, even expression language cannot help. I am putting it back. -- 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