<?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 exceptions on date  column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exceptions-on-date-column/m-p/2214987#M11590</link>
    <description>&lt;P&gt;I'm not sure that I understand your requirements, but I do think you should try changing your code to (row2.P_SPECL_BEG_DT1==null || row2.P_SPECL_END_DT1==null) ? null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your column is date datatype, blank values should return as null.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 18:32:24 GMT</pubDate>
    <dc:creator>cmendels</dc:creator>
    <dc:date>2019-12-13T18:32:24Z</dc:date>
    <item>
      <title>Null pointer exceptions on date  column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exceptions-on-date-column/m-p/2214986#M11589</link>
      <description>&lt;P&gt;Hi all here,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have similar issue while using for date column (but even after using relational.ISNULL / .equals(null)/ Length&amp;nbsp; I am having null pointer exceptions )&lt;BR /&gt;*********************************************Coded as below *******&amp;nbsp;&amp;nbsp;&lt;BR /&gt;(row2.P_SPECL_BEG_DT1.equals(null) || row2.P_SPECL_END_DT1.equals(null)) ||&amp;nbsp; --------- &amp;gt; checking fro null column&amp;nbsp;&lt;BR /&gt;(StringHandling.LEN(row2.P_SPECL_BEG_DT1.toString())==0 || StringHandling.LEN(row2.P_SPECL_END_DT1.toString())==0 ) ---&amp;gt; Checking if it is not null but o chars&lt;BR /&gt;? null :&lt;BR /&gt;!(TalendDate.isDate(row2.P_SPECL_BEG_DT1.toString(),"MM-dd-yyyy") &amp;amp;&amp;amp; TalendDate.isDate(row2.P_SPECL_END_DT1.toString(),"MM-dd-yyyy"))? null :&amp;nbsp; ---&amp;gt;checking if it is not desired date&amp;nbsp;&lt;BR /&gt;TalendDate.diffDate(row2.P_SPECL_END_DT1,row2.P_SPECL_BEG_DT1) &amp;lt; 0 ? " Error SPECL_BEG_DT1 &amp;gt; SPECL_END_DT1,"&lt;BR /&gt;:null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;**************************** Please let me know why even after handling nulls I am having Null pointer exception ***********&amp;nbsp; did I&amp;nbsp; miss anything here ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please correct my basic if I am missing any here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;attaching sample date values&amp;nbsp; for reference .... in which highlighted are null values coming and a 3 char word is another col in b/w which is not considered .&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exceptions-on-date-column/m-p/2214986#M11589</guid>
      <dc:creator>Sudhee_Maximus</dc:creator>
      <dc:date>2019-12-13T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Null pointer exceptions on date  column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exceptions-on-date-column/m-p/2214987#M11590</link>
      <description>&lt;P&gt;I'm not sure that I understand your requirements, but I do think you should try changing your code to (row2.P_SPECL_BEG_DT1==null || row2.P_SPECL_END_DT1==null) ? null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your column is date datatype, blank values should return as null.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 18:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exceptions-on-date-column/m-p/2214987#M11590</guid>
      <dc:creator>cmendels</dc:creator>
      <dc:date>2019-12-13T18:32:24Z</dc:date>
    </item>
  </channel>
</rss>

