[resolved] NullPointerException using tExtractRegexFields

One Star

[resolved] NullPointerException using tExtractRegexFields

using a simple Regex String:
"\\w+-(\\d{8}).*\\.csv"
Throws a null pointer exception when having a match:
Exception in component tExtractRegexFields_2
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.<init>(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
at
Any Suggestions would be helpful.

Accepted Solutions
Ten Stars

Re: [resolved] NullPointerException using tExtractRegexFields

This happens when you attempt to perform an operation on a null value.  Check your variables and incoming strings for null. 

All Replies
Six Stars

Re: [resolved] NullPointerException using tExtractRegexFields

Provide source data and job description
One Star

Re: [resolved] NullPointerException using tExtractRegexFields

While collecting source data and job description the problem got solved. The incoming data was NULL.
One Star

Re: [resolved] NullPointerException using tExtractRegexFields

Hi,
I got the below error message in Talend
Exception in component tJava_1
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.<init>(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
Please help me to get rid out of the problems and make my job to run as expected.
Thanks,
Vanitha
Ten Stars

Re: [resolved] NullPointerException using tExtractRegexFields

This happens when you attempt to perform an operation on a null value.  Check your variables and incoming strings for null.