[ 
https://issues.apache.org/jira/browse/NIFI-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15197492#comment-15197492
 ] 

Mark Payne commented on NIFI-1632:
----------------------------------

I attached a patch that is a unit test that exposes the issue. The attached 
patch is not intended to resolve the issue.

> ExtractText throws NullPointerException if Regular Expression has optional 
> Capturing Group that is not present
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-1632
>                 URL: https://issues.apache.org/jira/browse/NIFI-1632
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mark Payne
>             Fix For: 0.6.0
>
>         Attachments: 
> 0001-NIFI-1632-Generated-unit-test-to-prove-broken-behavi.patch
>
>
> If we use ExtractText and configure it with a regular expression that 
> contains a Capturing Group that is "optional" (ends with a ?), and the regex 
> matches some content where the capturing group is not present, then it will 
> throw a NullPointerException



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to