Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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.
Labels (3)
1 Solution

Accepted Solutions
cterenzi
Specialist
Specialist

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

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Provide source data and job description
Anonymous
Not applicable
Author

While collecting source data and job description the problem got solved. The incoming data was NULL.
_AnonymousUser
Specialist III
Specialist III

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
cterenzi
Specialist
Specialist

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