<?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: tMap null pointer in lookup code in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297070#M69677</link>
    <description>&lt;P&gt;@Charles Reeves​&amp;nbsp;, you will get null pointer exception in tMap when your writing expression with out handling null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.col.equals("Oragne")?1:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this should be written i below way to avoid null pointer exception by writing below way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;("Oragne").equals(row1.col)?1:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to check out in your tMap expressions to find out which column and apply above way . so that you can avoid null pointer exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 10:11:31 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-10-05T10:11:31Z</dc:date>
    <item>
      <title>tMap null pointer in lookup code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297068#M69675</link>
      <description>&lt;P&gt;I've got an NPE that I can't seem to get around.   In the code it's not complaining about any of the mappings, but it's throwing an NPE in the tHash_Lookup at the end of this block.   What seems to happen is that all 300k records go through (judging by the UI) and then the input switches back to 1 record (again judging by the UI).   I'm stumped.  Has anyone seen this/know how to diagnose it?    This is when utilizing an inner join.  I'm on JDK 11, but had the same issue on 8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									hasCasePrimitiveKeyWithNull_tMap_1 = &lt;B&gt;false&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									row6HashKey.HISTRY_DOC_NR = row1.HISTRY_DOC_NR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									row6HashKey.HISTRY_DOC_ACRN = row1.HISTRY_DOC_ACRN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									row6HashKey.APN_BEG_FIS_YR = &lt;/P&gt;&lt;P&gt;"XX"&lt;/P&gt;;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									row6HashKey.hashCodeDirty = &lt;B&gt;true&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;									tHash_Lookup_row6.lookup(row6HashKey);&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 20:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297068#M69675</guid>
      <dc:creator>CReeves1601668814</dc:creator>
      <dc:date>2020-10-02T20:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: tMap null pointer in lookup code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297069#M69676</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you 100% sur that there is no null values in key columns ? I don't see all your flow, but for now it's my first shot. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 19:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297069#M69676</guid>
      <dc:creator>pakapi_</dc:creator>
      <dc:date>2020-10-03T19:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: tMap null pointer in lookup code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297070#M69677</link>
      <description>&lt;P&gt;@Charles Reeves​&amp;nbsp;, you will get null pointer exception in tMap when your writing expression with out handling null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.col.equals("Oragne")?1:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this should be written i below way to avoid null pointer exception by writing below way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;("Oragne").equals(row1.col)?1:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to check out in your tMap expressions to find out which column and apply above way . so that you can avoid null pointer exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 10:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-null-pointer-in-lookup-code/m-p/2297070#M69677</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-10-05T10:11:31Z</dc:date>
    </item>
  </channel>
</rss>

