Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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 🙂
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 🙂