tMAP Filter - two conditions

One Star

tMAP Filter - two conditions

I am attempting to use a tMap component (Java) and filter the output row by two conditions:
row5.COID.equals("8417") && !(row5.Debit.equals("000000000000"))
This tMap will have multiple outputs defining multiple COIDs (8417, 8090, etc.) along with Debits and Credits. This will take one input stream consisting of multiple COIDs, Debits and Credits and create multiple output streams:
8417Debit
8417Credit
8090Debit
8090Credit
The syntax above fails with "NullPointerException". The filter works with either condition alone, but not combined.
Thanks,
Jim
Community Manager

Re: tMAP Filter - two conditions

Hello Jim
1) If you know java knowledge, press Ctrl+Shift+R to open the java file: yourJobName.java, then debug the job to see where the exception throws.
2) Show us the whole exception info and upload some screenshots of your job.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business