You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

hi community,
if have a problem with a NullPointerException in tFilterRow
Error log:
Exception in component tFilterRow_1
java.lang.NullPointerException
at haltern.journalentwicklung_0_1.journalentwicklung.tFileInputDelimited_1Process(journalentwicklung.java:3547)
at haltern.journalentwicklung_0_1.journalentwicklung.runJobInTOS(journalentwicklung.java:4517)
at haltern.journalentwicklung_0_1.journalentwicklung.main(journalentwicklung.java:4385)Job code:
3547: row1.column1.equals("X")
4517: tFileInputDelimited_1Process(globalMap);
4385: int exitCode = testjobClass.runJobInTOS(args);the input of column1 is defined as String. The input can be "x" or "y" but it could be possible that some rows are null so I set column1 as Nullable. Should I add some code to the advanced
I use the advanced mode of tFilterRow: row1.column1.equals("X")
should i write more? Can you help me with the problem?
Regards,
Piero
Offline
Hi Piero,
It looks like your column1 is null. You could prevent this from happening by using a tMap in front of the tFilterRow where you map all columns with automap and change the column1 output to the following:
(!row1.column1 == null) ? row1.column1 : ""
Hope this helps.
Regards,
Arno
Offline
Pages: 1