<?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: NullPointerException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302301#M74304</link>
    <description>&lt;P&gt;@Shalini M​&amp;nbsp;, as per error you are getting null values for (Integer)globalMap.get("tDBOutput_1_NB_LINE") or (Integer)globalMap.get("tDBOutput_2_NB_LINE")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to handle null values.can you try to write below way and see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row4.targetcount=Integer.sum(((Integer)globalMap.get("tDBOutput_1_NB_LINE")==null?0:(Integer)globalMap.get("tDBOutput_1_NB_LINE")),(Integer)globalMap.get("tDBOutput_2_NB_LINE")==null?0:(Integer)globalMap.get("tDBOutput_2_NB_LINE")));&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;</description>
    <pubDate>Tue, 27 Oct 2020 09:37:31 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-10-27T09:37:31Z</dc:date>
    <item>
      <title>NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302300#M74303</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used tjavaflex to get source and target count values. There is two flow to target table insert and update.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I wrote the code to get the sum of two flows:&lt;/P&gt;&lt;P&gt;row4.targetcount=Integer.sum((Integer)globalMap.get("tDBOutput_1_NB_LINE"),(Integer)globalMap.get("tDBOutput_2_NB_LINE"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I run the job, it is throwing the following exception,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception in component tJavaFlex_1 (demo)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.tStatCatcher_1Process(demo.java:5756)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.tPrejob_1Process(demo.java:4668)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.runJobInTOS(demo.java:6118)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.main(demo.java:5916)&lt;/P&gt;&lt;P&gt;Exception in component tJavaFlex_1 (demo)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.tStatCatcher_1Process(demo.java:5756)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.runJobInTOS(demo.java:6130)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.main(demo.java:5916)&lt;/P&gt;&lt;P&gt;Exception in component tJavaFlex_1 (demo)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.tStatCatcher_1Process(demo.java:5756)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.runJobInTOS(demo.java:6164)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at case_study_etl_process.demo_0_1.demo.main(demo.java:5916) &lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302300#M74303</guid>
      <dc:creator>shalinim1</dc:creator>
      <dc:date>2024-11-16T01:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302301#M74304</link>
      <description>&lt;P&gt;@Shalini M​&amp;nbsp;, as per error you are getting null values for (Integer)globalMap.get("tDBOutput_1_NB_LINE") or (Integer)globalMap.get("tDBOutput_2_NB_LINE")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to handle null values.can you try to write below way and see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row4.targetcount=Integer.sum(((Integer)globalMap.get("tDBOutput_1_NB_LINE")==null?0:(Integer)globalMap.get("tDBOutput_1_NB_LINE")),(Integer)globalMap.get("tDBOutput_2_NB_LINE")==null?0:(Integer)globalMap.get("tDBOutput_2_NB_LINE")));&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;</description>
      <pubDate>Tue, 27 Oct 2020 09:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302301#M74304</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-10-27T09:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302302#M74305</link>
      <description>&lt;P&gt;Thank you @Manohar B​&amp;nbsp;It worked! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 13:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302302#M74305</guid>
      <dc:creator>shalinim1</dc:creator>
      <dc:date>2020-10-27T13:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302303#M74306</link>
      <description>&lt;P&gt;@Shalini M​&amp;nbsp;,glad to help you&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 03:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException/m-p/2302303#M74306</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-10-28T03:16:31Z</dc:date>
    </item>
  </channel>
</rss>

