Lehel44 commented on a change in pull request #5088:
URL: https://github.com/apache/nifi/pull/5088#discussion_r637165820



##########
File path: 
nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/processors/SetSNMP.java
##########
@@ -105,6 +113,8 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession process
                 getLogger().error("Failed to send request to the agent. Check 
if the agent supports the used version.");
                 processError(context, processSession, flowFile);
             }
+        } else {
+            throw new ProcessException("No incoming flowfile found.");

Review comment:
       No, the processor gets the OIDs to modify as flowfile attributes. 
Without a flowfile we should let the user know it won't work.




-- 
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:
us...@infra.apache.org


Reply via email to