<?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: Handling nulll while doing equals function in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Handling-nulll-while-doing-equals-function/m-p/2326826#M96280</link>
    <description>use the java ternary operator.
&lt;BR /&gt;
&lt;BR /&gt;var1 == null ? false : var1.equals(var2)
&lt;BR /&gt;
&lt;BR /&gt;remember to think about how you want to handle the edge case where both are null as well (if that is indeed a valid scenario).</description>
    <pubDate>Sat, 04 Feb 2017 18:19:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-04T18:19:59Z</dc:date>
    <item>
      <title>Handling nulll while doing equals function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-nulll-while-doing-equals-function/m-p/2326825#M96279</link>
      <description>&lt;P&gt;I have two variable and both are strings and I need to compare both variable if it match it should return true otherwise false.&lt;BR /&gt;As we know equals function (var1.equals(var2)) does not handle null values and it thows "null pointer exception ".In other words , both variables should have values only then it can work .If I used two equals function (==) function It is not giving expected result as we know the reason.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I am looking for that solution where I can compare null String &amp;nbsp;with a value&lt;/STRONG&gt;&lt;BR /&gt;var1="2016-01-03 11:05:07"&lt;BR /&gt;var2=null&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 17:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-nulll-while-doing-equals-function/m-p/2326825#M96279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-04T17:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Handling nulll while doing equals function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-nulll-while-doing-equals-function/m-p/2326826#M96280</link>
      <description>use the java ternary operator.
&lt;BR /&gt;
&lt;BR /&gt;var1 == null ? false : var1.equals(var2)
&lt;BR /&gt;
&lt;BR /&gt;remember to think about how you want to handle the edge case where both are null as well (if that is indeed a valid scenario).</description>
      <pubDate>Sat, 04 Feb 2017 18:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-nulll-while-doing-equals-function/m-p/2326826#M96280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-04T18:19:59Z</dc:date>
    </item>
  </channel>
</rss>

