<?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: tXMLMAP: expressions and java.lang.NullPointerException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296438#M69099</link>
    <description>Hello,
&lt;BR /&gt;Attatched you find the&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;XML that is causing it to fail.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/787/test.txt_20150518-1055.txt" target="_blank"&gt;test.txt_20150518-1055.txt&lt;/A&gt;</description>
    <pubDate>Mon, 18 May 2015 09:55:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-18T09:55:30Z</dc:date>
    <item>
      <title>tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296435#M69096</link>
      <description>Hello, 
&lt;BR /&gt;I have the following expression in tXMLMAP component. 
&lt;BR /&gt;Although I check every variable before to use it in the calcul, I have a java.lang.NullPointerException&amp;nbsp; 
&lt;BR /&gt;What is wrong with my expression? 
&lt;BR /&gt;Thanks in advance. 
&lt;BR /&gt;!= null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; !=null &amp;amp;&amp;amp; .equals("POD")?&amp;nbsp; 
&lt;BR /&gt;(Float.valueOf()+Float.valueOf()-Float.valueOf() )/1000 : 
&lt;BR /&gt;!= null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; !=null &amp;amp;&amp;amp; .equals("JSF")?&amp;nbsp; 
&lt;BR /&gt;(Float.valueOf()+Float.valueOf())/1000 : null&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDgV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144730iB378D8A4C129E182/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDgV.png" alt="0683p000009MDgV.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 15 May 2015 15:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296435#M69096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-15T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296436#M69097</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;This part works alone:&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;!= null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; !=null &amp;amp;&amp;amp; .equals("POD")?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(Float.valueOf()+Float.valueOf()-Float.valueOf() )/1000 : null&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;And this works alone:&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;!= null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; !=null &amp;amp;&amp;amp; .equals("JSF")?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(Float.valueOf()+Float.valueOf())/1000 : null&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;But together it doesn't work.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I want to do something like:&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;if condition1 then A1&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;elseif condition 2 A2&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;else A3&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 15 May 2015 15:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296436#M69097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-15T15:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296437#M69098</link>
      <description>Can you send the XML that is causing it to fail?&amp;nbsp;</description>
      <pubDate>Fri, 15 May 2015 16:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296437#M69098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-15T16:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296438#M69099</link>
      <description>Hello,
&lt;BR /&gt;Attatched you find the&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;XML that is causing it to fail.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/787/test.txt_20150518-1055.txt" target="_blank"&gt;test.txt_20150518-1055.txt&lt;/A&gt;</description>
      <pubDate>Mon, 18 May 2015 09:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296438#M69099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-18T09:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296439#M69100</link>
      <description>There don't seem to be any problems with that. It is kind of hard to debug an issue like this without running the job and then inspecting the code. Have you looked at the line of generated code this falls over on? In the error message it says line 2965. What does that line do? When you say it works when you separate the code into two, how do you use the result? Are both null?</description>
      <pubDate>Mon, 18 May 2015 10:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296439#M69100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-18T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296440#M69101</link>
      <description>Hi, 
&lt;BR /&gt;Actually the problem is at the line 2567, attached you find the part of the source code including that line. 
&lt;BR /&gt;when I seperate the code, I mean that I calculate the variable DDPT only for "POD" or "JSF", so for the other one it is null. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDga.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144259i7E6D904A4983426B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDga.png" alt="0683p000009MDga.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDdc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140494iE49D8E73B5213C43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDdc.png" alt="0683p000009MDdc.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 19 May 2015 13:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296440#M69101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296441#M69102</link>
      <description>Hmm, have you made changes to your XML or to the Job? The error in your previous error message was elsewhere. I have a suggestion to help you track this. Go to your tXMLMap and set it up to allow rejects to be returned. See the image below... 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDgf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133581iFF00ADC7E1797DF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDgf.png" alt="0683p000009MDgf.png" /&gt;&lt;/span&gt;In the top left, click on the button that is circled and then untick the "Die on Error" tick box. This will provide a "Rejects" output from the tXMLMap. YOu can hook that up to a tLogRow. 
&lt;BR /&gt;Next, create another output from your tXMLMap and pass every data column that you are using from your XML to that output without changing them.&amp;nbsp; 
&lt;BR /&gt;Run the job and take a look at the data and the error messages. It should provide a bit more info on what is going wrong.</description>
      <pubDate>Tue, 19 May 2015 14:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296441#M69102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296442#M69103</link>
      <description>I changed the order of my output variables that's way the error changed the place but it's the same error and concerns the same expression. 
&lt;BR /&gt;I can't find the circled button, see the attached print screen. 
&lt;BR /&gt;I attatched also the job so that you can import it and see what's wrong. 
&lt;BR /&gt;Thanks in advance. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDgk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150435i139EFE57F855CFA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDgk.png" alt="0683p000009MDgk.png" /&gt;&lt;/span&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/787/collecte_fronataux.zip.zip" target="_blank"&gt;collecte_fronataux.zip.zip&lt;/A&gt;</description>
      <pubDate>Tue, 19 May 2015 15:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296442#M69103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296443#M69104</link>
      <description>My mistake, I was talking about the tMap component. It's useful to remember though.....(and should be implemented in the tXMLMap component). 
&lt;BR /&gt;Don't change the order of your outputs, just create another output table and add every data column to it without ANY data manipulation. No formulas, no expressions, nothing. Just the untouched data. Run that and see what is produced. Something is returning null (or maybe an empty string) where you are not expecting it.</description>
      <pubDate>Tue, 19 May 2015 15:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296443#M69104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296444#M69105</link>
      <description>I added a new output tLogRow&amp;nbsp;with the columns used to calculate the variable DDPT. 
&lt;BR /&gt;We see that only for the second line of the file that we have values for all columns. 
&lt;BR /&gt;I deleted all lines except the second line, the job is OK. 
&lt;BR /&gt;But in the expression of DDPT I check every variable, if at least one of the variables used in the expression is null the variable DDPT must be null. 
&lt;BR /&gt;For me the null variables are not used in the expression, because if it's null =&amp;gt; DDPT=null the rest of the expression with class methods is not executed. 
&lt;BR /&gt;What's wrong with my expression? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDgp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132891i326153EBE8D1239E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDgp.png" alt="0683p000009MDgp.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDbN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144775i52F3DB0037AA02FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDbN.png" alt="0683p000009MDbN.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 19 May 2015 16:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296444#M69105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T16:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296445#M69106</link>
      <description>OK, this is good news. I can't see all of the data types in your screen shot, but I can see enough to assume that maybe the datatype for the fields that "!=null" doesn't work for are maybe "String". To get round this, try something like .....
&lt;BR /&gt;.trim().compareToIgnoreCase("")!=0&amp;nbsp;
&lt;BR /&gt;.....as well as !=null
&lt;BR /&gt;If it is this, then maybe it might be a bit neater to write a Routine to do this checking for you. So you could have a Routine with a method called "checkNotEmpty(String column)" (or similar) and use that to tidy up your expressions.</description>
      <pubDate>Tue, 19 May 2015 17:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296445#M69106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T17:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296446#M69107</link>
      <description>With the solution that you suggest I have always an error. 
&lt;BR /&gt;The variables used in the expression are coming diredtly from the XML file: 
&lt;BR /&gt;all_tmp.DDPT = treeNodeAPI_tXMLMap_1_TXMLMAP_OUT 
&lt;BR /&gt;.get_String( 
&lt;BR /&gt;"row1.METRO:/METRO/METROLOGIE/T2_T0") 
&lt;BR /&gt;.trim().compareToIgnoreCase("") != 0 
&lt;BR /&gt;&amp;amp;&amp;amp; treeNodeAPI_tXMLMap_1_TXMLMAP_OUT 
&lt;BR /&gt;.get_String( 
&lt;BR /&gt;"row1.METRO:/METRO/METROLOGIE/T1_T3") 
&lt;BR /&gt;.trim() 
&lt;BR /&gt;.compareToIgnoreCase("") != 0</description>
      <pubDate>Tue, 19 May 2015 17:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296446#M69107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T17:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296447#M69108</link>
      <description>Hmmmm I think you *may* have stumbled upon a *feature* &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; 
&lt;BR /&gt;I decided to rebuild your job using the XML you supplied to see what was happening and found a way around this. I couldn't see anything wrong with your expression, so re-worked it using the tXMLMap variables. I created two Float variables (making sure that the Nullable box was ticked). The expression for the first variable (Var.Var1) was set to ..... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;!= null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; !=null &amp;amp;&amp;amp; .equals("POD")?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(Float.valueOf()+Float.valueOf()-Float.valueOf() )/1000 : null&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;The expression for the second variable (Var.Var2) was set to ..... 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;!= null &amp;amp;&amp;amp; != null &amp;amp;&amp;amp; !=null &amp;amp;&amp;amp; .equals("JSF")?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(Float.valueOf()+Float.valueOf())/1000 : null&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;I then used the variables in the expression for the output value like below... 
&lt;BR /&gt; 
&lt;PRE&gt;Var.Var1!=null ? Var.Var1 : Var.Var2!=null ? Var.Var2 : null&amp;nbsp;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;This worked. I would raise this issue with Talend support if you have the Enterprise Edition</description>
      <pubDate>Tue, 19 May 2015 22:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296447#M69108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T22:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296448#M69109</link>
      <description>Hello, 
&lt;BR /&gt;No, we don't have the Enterprise Edition but you can raise it as bug, no? 
&lt;BR /&gt;I tried to do it like what you described above, it couldn't find var1 and var2. 
&lt;BR /&gt;what's wrong? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDgu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137215iB9D5A424FD8762BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDgu.png" alt="0683p000009MDgu.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDgz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154326i1E77B3C8B983B5CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDgz.png" alt="0683p000009MDgz.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128720i6E6F528145E66CF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKV.png" alt="0683p000009MDKV.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDh4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141768i0D5636A6B7ABC25C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDh4.png" alt="0683p000009MDh4.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 21 May 2015 11:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296448#M69109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296449#M69110</link>
      <description>You need to create the Var1 and Var2 variables. They were tMap variables that I created for the example. The variables section is between the input and output sections of the tMap config display.</description>
      <pubDate>Thu, 21 May 2015 11:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296449#M69110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T11:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296450#M69111</link>
      <description>I created var1 and var2 in the tXMLMAP iteself and used them in the same component, is that possible?&lt;BR /&gt;Or I have to add a new tMAP after tXMLMAp to calculate the variable var based on var1 and var2?</description>
      <pubDate>Thu, 21 May 2015 12:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296450#M69111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296451#M69112</link>
      <description>Yes, that is right. When I said tMap, I meant tXMLMap. Create the variables in the tXMLMap and assign them values using the expressions described in my solution. Then use .....
&lt;BR /&gt;
&lt;PRE&gt;Var.Var1!=null ? Var.Var1 : Var.Var2!=null ? Var.Var2 : null&amp;nbsp;&lt;/PRE&gt;
&lt;BR /&gt;... in your output column.</description>
      <pubDate>Thu, 21 May 2015 12:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296451#M69112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296452#M69113</link>
      <description>Thanks it works! 
&lt;BR /&gt;But I think that it is not normal to be unable to make expressions with if elseif else in the tXMLMAP directly. 
&lt;BR /&gt;we have to make them in two steps! 
&lt;BR /&gt;It deserves to&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;raise the issue to talend developpement team.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 21 May 2015 13:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296452#M69113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMAP: expressions and java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296453#M69114</link>
      <description>I agree. I have only seen this issue in your example though. I use inline IFs a lot in my tMap/tXMLMap components. I suspect that it is something to do with processing an XML &amp;nbsp;entity in a single expression more than once. It looks like the first time the entity is checked (or used) it is fine, but the second time it is null. 
&lt;BR /&gt;I should probably point out that I no longer work for Talend and have my own business working with Talend tools. My user on here still shows as a "Talend User" and I am looking to get that changed. If I find the cause of this issue I will pass it on to the guys at Talend.</description>
      <pubDate>Thu, 21 May 2015 14:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMAP-expressions-and-java-lang-NullPointerException/m-p/2296453#M69114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T14:21:43Z</dc:date>
    </item>
  </channel>
</rss>

