<?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: Null Pointer Exception in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286282#M59904</link>
    <description>Thanks for your reply. I tried part by part and when I replaced null with 0 in else statements ( see below). I am no longer getting nullPointerException error. 
&lt;BR /&gt;row2.len1Pd !=null&amp;amp;&amp;amp; row2.len1 !=null ? 
&lt;BR /&gt;(row2.len1Pd.equals("LF")?(row2.len1*365.25*80): 
&lt;BR /&gt;(row2.len1Pd.equals("YR")?(row2.len1*365.25): 
&lt;BR /&gt;((row2.len1Pd.equals("MO")||row2.len1Pd.equals("MN"))?(row2.len1*(365.25/12)): 
&lt;BR /&gt;(row2.len1Pd.equals("WK")?(row2.len1*7): 
&lt;BR /&gt;(row2.len1Pd.equals("HR")?(row2.len1/24): 
&lt;BR /&gt;(row2.len1Pd.equals("DA")?(row2.len1):0)))))) 
&lt;BR /&gt;:0</description>
    <pubDate>Fri, 10 Apr 2020 17:48:33 GMT</pubDate>
    <dc:creator>sbarjatya</dc:creator>
    <dc:date>2020-04-10T17:48:33Z</dc:date>
    <item>
      <title>Null Pointer Exception in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286280#M59902</link>
      <description>&lt;P&gt;I am getting Null pointer exception error in tmap even after handling all the null values in expression below [row2.len1Pd is 'String' and row2.len1 is 'Short']:&lt;/P&gt; 
&lt;P&gt;(!Relational.ISNULL(row2.len1Pd)||row2.len1Pd !=null||!row2.len1Pd.equals("")) &amp;amp;&amp;amp; row2.len1 !=null ?&lt;BR /&gt;(row2.len1Pd.equals("LF")?(row2.len1*365.25*80):&lt;BR /&gt;(row2.len1Pd.equals("YR")?(row2.len1*365.25):&lt;BR /&gt;((row2.len1Pd.equals("MO")||row2.len1Pd.equals("MN"))?(row2.len1*(365.25/12)):&lt;BR /&gt;(row2.len1Pd.equals("WK")?(row2.len1*7):&lt;BR /&gt;(row2.len1Pd.equals("HR")?(row2.len1/24):&lt;BR /&gt;(row2.len1Pd.equals("DA")?(row2.len1):null))))))&lt;BR /&gt;:null&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am not sure, what am I missing. Any advice would be appreciated.&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286280#M59902</guid>
      <dc:creator>sbarjatya</dc:creator>
      <dc:date>2020-04-08T16:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Null Pointer Exception in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286281#M59903</link>
      <description>I am sure that null pointer exception will give when you have not handled null validation before writing some expression on that field. Please beak it down men's test part by part then can find that which part is giving null pointer exception.
&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2020 01:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286281#M59903</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-09T01:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Null Pointer Exception in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286282#M59904</link>
      <description>Thanks for your reply. I tried part by part and when I replaced null with 0 in else statements ( see below). I am no longer getting nullPointerException error. 
&lt;BR /&gt;row2.len1Pd !=null&amp;amp;&amp;amp; row2.len1 !=null ? 
&lt;BR /&gt;(row2.len1Pd.equals("LF")?(row2.len1*365.25*80): 
&lt;BR /&gt;(row2.len1Pd.equals("YR")?(row2.len1*365.25): 
&lt;BR /&gt;((row2.len1Pd.equals("MO")||row2.len1Pd.equals("MN"))?(row2.len1*(365.25/12)): 
&lt;BR /&gt;(row2.len1Pd.equals("WK")?(row2.len1*7): 
&lt;BR /&gt;(row2.len1Pd.equals("HR")?(row2.len1/24): 
&lt;BR /&gt;(row2.len1Pd.equals("DA")?(row2.len1):0)))))) 
&lt;BR /&gt;:0</description>
      <pubDate>Fri, 10 Apr 2020 17:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Pointer-Exception-in-tmap/m-p/2286282#M59904</guid>
      <dc:creator>sbarjatya</dc:creator>
      <dc:date>2020-04-10T17:48:33Z</dc:date>
    </item>
  </channel>
</rss>

