<?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 Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326367#M95863</link>
    <description>Ya it's row18</description>
    <pubDate>Wed, 12 Jul 2017 18:10:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-12T18:10:59Z</dc:date>
    <item>
      <title>null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326364#M95860</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt; 
&lt;P&gt;I'm facing null pointer exception in Tmap when I'm doing calculation below you can see in screen shot,&lt;/P&gt; 
&lt;P&gt;and I already checked in database for same calculation but their are no null values in them how to resolve this error&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;A.Sumanth&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cap1.PNG" style="width: 895px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvUm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129722i1DB636FC8B481CDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvUm.png" alt="0683p000009LvUm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cap2.PNG" style="width: 498px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvUr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146183i2888086429F48F70/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvUr.png" alt="0683p000009LvUr.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cap3.PNG" style="width: 541px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvUw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133137i17C07CFAD269B991/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvUw.png" alt="0683p000009LvUw.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cap9.PNG" style="width: 578px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvTu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134140i47106137222DED25/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvTu.png" alt="0683p000009LvTu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 17:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326364#M95860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T17:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326365#M95861</link>
      <description>&lt;P&gt;Are you sure it is row18 or row1 the object?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 17:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326365#M95861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T17:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326366#M95862</link>
      <description>Ya sure it is row18&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2017 18:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326366#M95862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T18:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326367#M95863</link>
      <description>Ya it's row18</description>
      <pubDate>Wed, 12 Jul 2017 18:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326367#M95863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T18:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326368#M95864</link>
      <description>&lt;P&gt;Please provide screenshots of your job and tMap mapping. &amp;nbsp;Not sure what it is.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 22:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326368#M95864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T22:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326369#M95865</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ca1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv6c.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127740iA15E49EE4AA7A57A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv6c.png" alt="0683p000009Lv6c.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ca2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvMQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142157iCD2FE9B1A9CEF8CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvMQ.png" alt="0683p000009LvMQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ca3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luyi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151888iC33AA8792FB33195/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luyi.png" alt="0683p000009Luyi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 05:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326369#M95865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T05:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326370#M95866</link>
      <description>&lt;P&gt;Community all-star,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;, wrote a very nice guide on how to identify which rows are causing errors in a tMap:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.rilhia.com/quicktips/quick-tip-how-debug-tmap-errors" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-how-debug-tmap-errors&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If this works for you, throw him some kudos.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326370#M95866</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-07-13T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326371#M95867</link>
      <description>&lt;P&gt;If row18.CUST_TOTAL_QUOTA_BEFORE and row18.CUST_TOTAL_QUOTA_USED_BEFORE are both Java Objects of type &lt;STRONG&gt;Double&lt;/STRONG&gt; (i.e. they are set as nullable), and are not Java primitive type &lt;STRONG&gt;double&lt;/STRONG&gt;, &amp;nbsp;then you should do the expression as follows&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(&amp;nbsp;&lt;SPAN&gt;row18.CUST_TOTAL_QUOTA_BEFORE!=null &amp;amp;&amp;amp;&amp;nbsp;row18.CUST_TOTAL_QUOTA_USED_BEFORE!=null &lt;STRONG&gt;?&lt;/STRONG&gt; new Double(row18.CUST_TOTAL_QUOTA_BEFORE.doubleValue() -&amp;nbsp;row18.CUST_TOTAL_QUOTA_USED_BEFORE.doubleValue()) &lt;STRONG&gt;:&lt;/STRONG&gt; null)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;This is an inline if statement. &amp;nbsp;We are checking first that none of the 2 objects are null. Then if both are not null, we do the double substraction, and return a new Double object since your target column is also of type Double. &amp;nbsp;If one or both of the Double objects are null, then we return null. &amp;nbsp;It is up to you to figure out what to do if one of them is null.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If these values can never be null in the database, then you will simplify the logic by unchecking the &lt;STRONG&gt;nullable&lt;/STRONG&gt; attribute on the column to make the type of double Java primitive type. &amp;nbsp;However, if they can be null, then you should program as above, i.e. defensively checking for nulls.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 23:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326371#M95867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T23:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: null pointer exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326372#M95868</link>
      <description>&lt;P&gt;Thank you so much expert,I was struggling with this problem from past ten days you are the one who gave me correct&lt;/P&gt; 
&lt;P&gt;solution from my question,By understanding the question properly&lt;/P&gt; 
&lt;P&gt;I need the expert like you for solutions thank you once again it's working fine&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;A.Sumanth&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-pointer-exception/m-p/2326372#M95868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T10:37:37Z</dc:date>
    </item>
  </channel>
</rss>

