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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMap NullPointerException

Hi community

I use this expression filter in tMap: row4.mycolumn.equals("004")  when I run the job I have this error message:

Exception in component tMap_1 (My_JOB) java.lang.NullPointerException

mycolumn is string

 

I have Talend open studio Version: 7.1.1

 

Best Regards

 

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    Your input column s having null value and that is the reason why it is giving below error.

 

     Could you please try like below.

 

!Relational.ISNULL(row4.mycolumn)? (row4.mycolumn.equals("004")?"yes":"no" )
:null

You can add all your conditions in the first part of your null check.


Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,

 

    Your input column s having null value and that is the reason why it is giving below error.

 

     Could you please try like below.

 

!Relational.ISNULL(row4.mycolumn)? (row4.mycolumn.equals("004")?"yes":"no" )
:null

You can add all your conditions in the first part of your null check.


Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Thank you very much It works