<?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 tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217524#M13090</link>
    <description>Hi mamouroux,
&lt;BR /&gt;Could you explain a little bit more your test ?
&lt;BR /&gt;In java if you try to test if CAR_CODE is equal to "MIN_MINISTERE", you need to replace == to .equals("CHARACTER_CHAIN_TO_TEST")
&lt;BR /&gt;For your exemple : 
&lt;BR /&gt;CAR_CODE.equals("MIN_MINISTERE") ? OBC_VALEUR : null
&lt;BR /&gt;In this exemple : if CAR_CODE is equal to "MIN_MINISTERE" 
&lt;BR /&gt; then the column value will be the value of OBC_VALEUR
&lt;BR /&gt; else the column value will be null
&lt;BR /&gt;Best regards;</description>
    <pubDate>Mon, 21 Apr 2008 10:19:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-21T10:19:40Z</dc:date>
    <item>
      <title>NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217520#M13086</link>
      <description>Hello, 
&lt;BR /&gt;I have need to update a database table of our establishments with an other database organized with an other way. 
&lt;BR /&gt;The job is in (figure 4) with the running tMap in (figure 1). The result is a list of establishments and caracteristics. 
&lt;BR /&gt;The output table is with one entry per establishment with all the caracteristics. 
&lt;BR /&gt;I have then the tMap in (figure 2) with the error in (figure 3). 
&lt;BR /&gt;Thanks for help. 
&lt;BR /&gt;I use TOS 2.3.1 in java. 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217520#M13086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217521#M13087</link>
      <description>Hi,&lt;BR /&gt;Could you show the code returning the exception ?&lt;BR /&gt;NullPointerException means that you are trying to manipulate an object which doesn't exists&lt;BR /&gt;You may add a condition in your treatment (if myObject == null) or a try/catch clause&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 17 Apr 2008 09:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217521#M13087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-17T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217522#M13088</link>
      <description>Hello
&lt;BR /&gt;Yes, maverick is right.If you get an null point exception, you need to hand the null value on an object. read this 2656.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 17 Apr 2008 09:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217522#M13088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-17T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217523#M13089</link>
      <description>Excuse me but your answers do not help me.
&lt;BR /&gt;I have the following entry datas:
&lt;BR /&gt;ETS_NOM ETS_ID CAR_CODE FAM_ID OBC_VALEUR
&lt;BR /&gt;M.E.C.S. St Pie X|8|CAPACITE|4|54|
&lt;BR /&gt;M.E.C.S. St Pie X|8|MIXITE|4|Garçons|
&lt;BR /&gt;M.E.C.S. St Pie X|8|DIO_DIOCESE|4|70|
&lt;BR /&gt;M.E.C.S. St Pie X|8|MIN_MINISTERE|4|6|
&lt;BR /&gt;M.E.C.S. St Pie X|8|HABILITE|4|56|
&lt;BR /&gt;M.E.C.S. St Pie X|8|AUTORISE|4|84|
&lt;BR /&gt;I.E.S. St Pie X|9|CAPACITE|4|34|
&lt;BR /&gt;I.E.S. St Pie X|9|MIXITE|4|Garçons|
&lt;BR /&gt;I.E.S. St Pie X|9|DIO_DIOCESE|4|70|
&lt;BR /&gt;You see that the ETS_NOM="I.E.S. St Pie X" has no entry for CAR_CODE="MIN_MINISTERE" for exemple
&lt;BR /&gt;In the output table I have a column for each CAR_CODE to fill. The column to fill are:
&lt;BR /&gt;ETS_NOM, ETS_ID, CAPACITE, MIXITE, DIO_DIOCESE, MIN_MINISTERE, HABILITE, AUTORISE
&lt;BR /&gt;The tMap falls in error because in the output table column MIN_MINISTERE I have written:
&lt;BR /&gt;CAR_CODE == "MIN_MINISTERE" ? OBC_VALEUR : null
&lt;BR /&gt;But MIN_MINISTERE does not exists in the first line and doesn't exist for "I.E.S. St Pie X".</description>
      <pubDate>Mon, 21 Apr 2008 10:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217523#M13089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-21T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217524#M13090</link>
      <description>Hi mamouroux,
&lt;BR /&gt;Could you explain a little bit more your test ?
&lt;BR /&gt;In java if you try to test if CAR_CODE is equal to "MIN_MINISTERE", you need to replace == to .equals("CHARACTER_CHAIN_TO_TEST")
&lt;BR /&gt;For your exemple : 
&lt;BR /&gt;CAR_CODE.equals("MIN_MINISTERE") ? OBC_VALEUR : null
&lt;BR /&gt;In this exemple : if CAR_CODE is equal to "MIN_MINISTERE" 
&lt;BR /&gt; then the column value will be the value of OBC_VALEUR
&lt;BR /&gt; else the column value will be null
&lt;BR /&gt;Best regards;</description>
      <pubDate>Mon, 21 Apr 2008 10:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217524#M13090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-21T10:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217525#M13091</link>
      <description>Are you sure that your CAR_CODE always have a value ?&lt;BR /&gt;In your code line, if CAR_CODE is null, you may get a nullPointerException error&lt;BR /&gt;Try to replace your code line by :&lt;BR /&gt;CAR_CODE != null ? (CAR_CODE.equals("MIN_MINISTERE") ? OBC_VALEUR : null) : null</description>
      <pubDate>Mon, 21 Apr 2008 10:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217525#M13091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-21T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217526#M13092</link>
      <description>Therefore, you can type more simple syntax:
&lt;BR /&gt;"MIN_MINISTERE".equals(CAR_CODE) ? OBC_VALEUR : null
&lt;BR /&gt;Then, NullPointerException will never occur because of CAR_CODE is null.</description>
      <pubDate>Mon, 21 Apr 2008 11:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-in-tMap/m-p/2217526#M13092</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2008-04-21T11:00:05Z</dc:date>
    </item>
  </channel>
</rss>

