<?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: In tMap, my variable can't be null : java.lang.NullPointerException error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338797#M107004</link>
    <description>&lt;P&gt;Thank you very much Corentin !&lt;/P&gt;&lt;P&gt;Iv've never noticed that checkbox before !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bDkv2AAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156807iFB84625277E5C298/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bDkv2AAC.png" alt="0695b00000bDkv2AAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The devil is in the details" &lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 15:15:16 GMT</pubDate>
    <dc:creator>CatherineT</dc:creator>
    <dc:date>2022-12-20T15:15:16Z</dc:date>
    <item>
      <title>In tMap, my variable can't be null : java.lang.NullPointerException error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338792#M106999</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a variable in the middle part of a tMap component.&lt;/P&gt;&lt;P&gt;This variable should be a byte type variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is calculated by testing a char type input data (through a global routine) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If CharData = 'A' Then 1&lt;/P&gt;&lt;P&gt;Else if CharData = 'B' Then 0&lt;/P&gt;&lt;P&gt;Else null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I have the following message error :&amp;nbsp;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;I think that it is due to the fact that the variable is null because the char data is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it mean that a variable can't be null ?!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338792#M106999</guid>
      <dc:creator>CatherineT</dc:creator>
      <dc:date>2024-11-15T22:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: In tMap, my variable can't be null : java.lang.NullPointerException error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338793#M107000</link>
      <description>&lt;P&gt;It depends how you have configured the variable. If the variable is also not null configured that you will get this Exception.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 18:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338793#M107000</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2022-12-19T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: In tMap, my variable can't be null : java.lang.NullPointerException error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338794#M107001</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please post your tMap component setting screenshots here which will be helpful for us to address your issue?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 05:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338794#M107001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-20T05:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: In tMap, my variable can't be null : java.lang.NullPointerException error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338795#M107002</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the job I use to test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxpsAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143568i54FB25134CBF861C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxpsAAC.png" alt="0695b00000aGxpsAAC.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxpxAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154781iA7E08049D9097487/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxpxAAC.png" alt="0695b00000aGxpxAAC.png" /&gt;&lt;/span&gt;This is working :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxqWAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150024iE3F6A7451EB6CE2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxqWAAS.png" alt="0695b00000aGxqWAAS.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxqlAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128189i81A139B145AE6B22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxqlAAC.png" alt="0695b00000aGxqlAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to calculate QCDemandeNu in the middle part of the tMap, because I'll use it to calculate other variables.&lt;/P&gt;&lt;P&gt;So this the tMap I would like to use :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxrPAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152297iDB935C1846AF96B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxrPAAS.png" alt="0695b00000aGxrPAAS.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxrZAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158074i915A24A5271B0A22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxrZAAS.png" alt="0695b00000aGxrZAAS.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aGxreAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145365iD51C6D35AE8D6EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aGxreAAC.png" alt="0695b00000aGxreAAC.png" /&gt;&lt;/span&gt;The problem is that I can't use the type Byte (which allows null values) in the variable part, whereas I can in the output part of the tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 07:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338795#M107002</guid>
      <dc:creator>CatherineT</dc:creator>
      <dc:date>2022-12-20T07:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: In tMap, my variable can't be null : java.lang.NullPointerException error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338796#M107003</link>
      <description>&lt;P&gt;In your screenshot, var1 is not set as "nullable". Make sure that in tMap you have checked the 'nullable' checkbox , which is near the name of your variable (unchecked by default)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338796#M107003</guid>
      <dc:creator>corentin1</dc:creator>
      <dc:date>2022-12-20T14:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: In tMap, my variable can't be null : java.lang.NullPointerException error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338797#M107004</link>
      <description>&lt;P&gt;Thank you very much Corentin !&lt;/P&gt;&lt;P&gt;Iv've never noticed that checkbox before !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bDkv2AAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156807iFB84625277E5C298/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bDkv2AAC.png" alt="0695b00000bDkv2AAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The devil is in the details" &lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 15:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-tMap-my-variable-can-t-be-null-java-lang-NullPointerException/m-p/2338797#M107004</guid>
      <dc:creator>CatherineT</dc:creator>
      <dc:date>2022-12-20T15:15:16Z</dc:date>
    </item>
  </channel>
</rss>

