<?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 NullPointerException error with Nullable field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-error-with-Nullable-field/m-p/2311502#M82536</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;I am faced with a 'java.lang.NullPointerException' when I set a null value in a (nullable) field.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;The error is just at the t_map, I am not yet inserting in a database&lt;/FONT&gt;&lt;/FONT&gt;.&lt;BR /&gt;Here is the transformation I am doing&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU)) ? null :&lt;BR /&gt;"Tim".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 1 :&lt;BR /&gt;"Sup".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 0 : null&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;When I replace null by 999 there is no error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU)) ? 999 :&lt;BR /&gt;"Tim".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 1 :&lt;BR /&gt;"Sup".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 0 : 999&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;I don't understand why I am getting the error since my fields are nullabe.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;Any help please? Thank you&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFWO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145483i1F6DFFE82401203A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFWO.png" alt="0683p000009MFWO.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2016 17:19:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-22T17:19:27Z</dc:date>
    <item>
      <title>NullPointerException error with Nullable field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-error-with-Nullable-field/m-p/2311502#M82536</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;I am faced with a 'java.lang.NullPointerException' when I set a null value in a (nullable) field.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;The error is just at the t_map, I am not yet inserting in a database&lt;/FONT&gt;&lt;/FONT&gt;.&lt;BR /&gt;Here is the transformation I am doing&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU)) ? null :&lt;BR /&gt;"Tim".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 1 :&lt;BR /&gt;"Sup".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 0 : null&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;When I replace null by 999 there is no error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU)) ? 999 :&lt;BR /&gt;"Tim".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 1 :&lt;BR /&gt;"Sup".equalsIgnoreCase(StringHandling.TRIM(Stie_adresse.CANDIDAT_STATU))? 0 : 999&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;I don't understand why I am getting the error since my fields are nullabe.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;Any help please? Thank you&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFWO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145483i1F6DFFE82401203A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFWO.png" alt="0683p000009MFWO.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-error-with-Nullable-field/m-p/2311502#M82536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T17:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException error with Nullable field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-error-with-Nullable-field/m-p/2311503#M82537</link>
      <description>Have you looked at the line that is throwing the exception in the Code view, to see exactly what is causing the exception?
&lt;BR /&gt;As you suggest, everything here seems ok</description>
      <pubDate>Fri, 22 Jul 2016 17:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-error-with-Nullable-field/m-p/2311503#M82537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T17:39:16Z</dc:date>
    </item>
  </channel>
</rss>

