lordgamez commented on a change in pull request #1096:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1096#discussion_r644965280
##########
File path: extensions/tensorflow/TFExtractTopLabels.cpp
##########
@@ -133,8 +136,11 @@ int64_t
TFExtractTopLabels::LabelsReadCallback::process(const std::shared_ptr<io
while (total_read < stream->size()) {
auto read = stream->read(reinterpret_cast<uint8_t *>(&buf[0]),
static_cast<int>(buf_size));
+ if (read < 0) {
Review comment:
Updated in 0185ef84c7e1855c3f73fecf608e37aa4bf66ef5 I'll update it after
the merge
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]