Github user arunma commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2080#discussion_r133464300
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXPath.java
 ---
    @@ -219,6 +234,25 @@ public void onTrigger(final ProcessContext context, 
final ProcessSession session
             }
     
             final ComponentLog logger = getLogger();
    +        final XMLReader xmlReader;
    +
    +        try {
    +            xmlReader = XMLReaderFactory.createXMLReader();
    +        } catch (SAXException e) {
    +            logger.error("Error while constructing XMLReader {}", new 
Object[]{e});
    +            session.transfer(flowFiles, REL_FAILURE);
    --- End diff --
    
    Yikes. My bad ! Fixed it. Both throw ProcessException.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to