<?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: NullPointer Exception with TalendDate.FormatDate() in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300115#M72381</link>
    <description>&lt;P&gt;@Hendrik Molitor​&amp;nbsp;, can you try to use the below one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.mydate==null?null:TalendDate.formatDate("dd-MM-yyyy", row1.mydate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Thu, 15 Oct 2020 10:45:07 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-10-15T10:45:07Z</dc:date>
    <item>
      <title>NullPointer Exception with TalendDate.FormatDate()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300114#M72380</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my source is an excel sheet where I have a column which is obviously a date, so in the schema in talend I defined that column as date.&lt;/P&gt;&lt;P&gt;In tMap I want to convert it to a string so I do --&amp;gt; TalendDate.formatDate("dd-MM-yyyy", row1.mydate) and get the following error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;	at java.util.Calendar.setTime(Calendar.java:1770)&lt;/P&gt;&lt;P&gt;	at java.text.SimpleDateFormat.format(SimpleDateFormat.java:943)&lt;/P&gt;&lt;P&gt;	at java.text.SimpleDateFormat.format(SimpleDateFormat.java:936)&lt;/P&gt;&lt;P&gt;	at java.text.DateFormat.format(DateFormat.java:345)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.formatDate(TalendDate.java:129)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried several date patterns but it makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 10:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300114#M72380</guid>
      <dc:creator>HMolitor</dc:creator>
      <dc:date>2020-10-15T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointer Exception with TalendDate.FormatDate()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300115#M72381</link>
      <description>&lt;P&gt;@Hendrik Molitor​&amp;nbsp;, can you try to use the below one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.mydate==null?null:TalendDate.formatDate("dd-MM-yyyy", row1.mydate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Thu, 15 Oct 2020 10:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300115#M72381</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-10-15T10:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointer Exception with TalendDate.FormatDate()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300116#M72382</link>
      <description>&lt;P&gt;Oh...i thought I excluded null value rows but obviously I didn`t...so this helps a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 11:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300116#M72382</guid>
      <dc:creator>HMolitor</dc:creator>
      <dc:date>2020-10-15T11:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointer Exception with TalendDate.FormatDate()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300117#M72383</link>
      <description>&lt;P&gt;@Hendrik Molitor​&amp;nbsp;, you can mark the replay as Answer and like it, the one which helped you . So that it will help to others.&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>Thu, 15 Oct 2020 11:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointer-Exception-with-TalendDate-FormatDate/m-p/2300117#M72383</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-10-15T11:20:47Z</dc:date>
    </item>
  </channel>
</rss>

