<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to Handl nullPointerException in tFilterRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297273#M69864</link>
    <description>Hi Arno and janhess, 
&lt;BR /&gt;Thank you very much. With the code the Job is working very well now 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 24 May 2012 13:55:32 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2012-05-24T13:55:32Z</dc:date>
    <item>
      <title>how to Handl nullPointerException in tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297268#M69859</link>
      <description>hi community,
&lt;BR /&gt;if have a problem with a NullPointerException in tFilterRow
&lt;BR /&gt;Error log:
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tFilterRow_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at haltern.journalentwicklung_0_1.journalentwicklung.tFileInputDelimited_1Process(journalentwicklung.java:3547)&lt;BR /&gt;	at haltern.journalentwicklung_0_1.journalentwicklung.runJobInTOS(journalentwicklung.java:4517)&lt;BR /&gt;	at haltern.journalentwicklung_0_1.journalentwicklung.main(journalentwicklung.java:4385)&lt;/PRE&gt;
&lt;BR /&gt;Job code:
&lt;BR /&gt;
&lt;PRE&gt;3547: row1.column1.equals("X")&lt;BR /&gt;4517: tFileInputDelimited_1Process(globalMap);&lt;BR /&gt;4385: int exitCode = testjobClass.runJobInTOS(args);&lt;/PRE&gt;
&lt;BR /&gt;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 
&lt;BR /&gt;I use the advanced mode of tFilterRow: row1.column1.equals("X")
&lt;BR /&gt;should i write more? Can you help me with the problem?
&lt;BR /&gt;Regards,
&lt;BR /&gt;
&lt;BR /&gt;Piero</description>
      <pubDate>Thu, 24 May 2012 11:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297268#M69859</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-05-24T11:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to Handl nullPointerException in tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297269#M69860</link>
      <description>Hi Piero,&lt;BR /&gt;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:&lt;BR /&gt;&lt;PRE&gt;(!row1.column1 == null) ? row1.column1 : ""&lt;/PRE&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Regards,&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 24 May 2012 11:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297269#M69860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-24T11:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to Handl nullPointerException in tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297270#M69861</link>
      <description>Hi Arno,
&lt;BR /&gt;thank you very much for your help again! 
&lt;BR /&gt;I tried your code but it says now: The operator ! is not defined for the typ String
&lt;BR /&gt;what should I do?
&lt;BR /&gt;regards,
&lt;BR /&gt;Piero</description>
      <pubDate>Thu, 24 May 2012 13:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297270#M69861</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-05-24T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to Handl nullPointerException in tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297271#M69862</link>
      <description>! Relational.ISNULL(row1.column1) ? row1.column1 : ""</description>
      <pubDate>Thu, 24 May 2012 13:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297271#M69862</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-05-24T13:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to Handl nullPointerException in tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297272#M69863</link>
      <description>Hi Piero,
&lt;BR /&gt;I'm very sorry, my mistake. Janhess's code will work as will this code:
&lt;BR /&gt;
&lt;PRE&gt;(row1.column1 != null) ? row1.column1 : ""&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 24 May 2012 13:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297272#M69863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-24T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to Handl nullPointerException in tFilterRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297273#M69864</link>
      <description>Hi Arno and janhess, 
&lt;BR /&gt;Thank you very much. With the code the Job is working very well now 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 24 May 2012 13:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-Handl-nullPointerException-in-tFilterRow/m-p/2297273#M69864</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-05-24T13:55:32Z</dc:date>
    </item>
  </channel>
</rss>

