talend - Compare String using tMap -


i using talend prepare dataware. want compare string contents of column using tmap component , create variable store in db. problem == operator not give right result (example: row2.recipient == "text"?"text":"" "") , if use .equals errors when executing.

you error if row2.recipient null, , "==" should not used when comparing strings. correct syntax :

"text".equals(row2.recipient)?"text":"" 

then prevent nullpointerexceptions.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -