<?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: tJavaRow : null pointer exception with length() method in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300517#M72737</link>
    <description>Maybe input_row.Column1 is null.&lt;BR /&gt;You can try : if (chaine!=null) { lg = chaine.length(); }&lt;BR /&gt;regards,</description>
    <pubDate>Wed, 29 Jun 2011 16:35:17 GMT</pubDate>
    <dc:creator>bdurand</dc:creator>
    <dc:date>2011-06-29T16:35:17Z</dc:date>
    <item>
      <title>tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300516#M72736</link>
      <description>Hi , &lt;BR /&gt;I built the job  tFileInputExcel ------&amp;gt; tJavaRow ----&amp;gt; tLogRow&lt;BR /&gt;I am testing length of the column in the tJavaRow component with String chaine = input_row.Column1 then lg = chaine.length() but this latter is generating a null pointer exception.&lt;BR /&gt;Here enclosed  3 screenshots (job , tJavaRow code and null pointer exception error)&lt;BR /&gt;&lt;BR /&gt;With best regards,&lt;BR /&gt;Yves.</description>
      <pubDate>Sat, 16 Nov 2024 12:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300516#M72736</guid>
      <dc:creator>YVES1</dc:creator>
      <dc:date>2024-11-16T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300517#M72737</link>
      <description>Maybe input_row.Column1 is null.&lt;BR /&gt;You can try : if (chaine!=null) { lg = chaine.length(); }&lt;BR /&gt;regards,</description>
      <pubDate>Wed, 29 Jun 2011 16:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300517#M72737</guid>
      <dc:creator>bdurand</dc:creator>
      <dc:date>2011-06-29T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300518#M72738</link>
      <description>Hi , &lt;BR /&gt;I did this test as well but it fails as well.&lt;BR /&gt;A s soon as I manage input_row.Column1 with length() method or != null the result is null pointer exception.&lt;BR /&gt;Best regards,&lt;BR /&gt;Yves.</description>
      <pubDate>Wed, 29 Jun 2011 21:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300518#M72738</guid>
      <dc:creator>YVES1</dc:creator>
      <dc:date>2011-06-29T21:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300519#M72739</link>
      <description>Hi&lt;BR /&gt;try if (!Relational.ISNULL(input_row.Column1)){&lt;BR /&gt;}</description>
      <pubDate>Thu, 30 Jun 2011 05:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300519#M72739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-30T05:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300520#M72740</link>
      <description>This will prevent even if that column have blank space.&lt;BR /&gt;if(input_row.Column1!=null &amp;amp;&amp;amp; input_row.Column1.trim().length()&amp;gt;0){&lt;BR /&gt;  String a = input_row.Column1.length();&lt;BR /&gt;}</description>
      <pubDate>Thu, 30 Jun 2011 08:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300520#M72740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-30T08:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300521#M72741</link>
      <description>Hi , &lt;BR /&gt;I experienced the following if (!Relational.ISNULL(input_row.Column1)) suggested by lijolawrance and it works fine.&lt;BR /&gt;Thank you veru much.&lt;BR /&gt;Best regards,&lt;BR /&gt;Yves.</description>
      <pubDate>Tue, 05 Jul 2011 08:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300521#M72741</guid>
      <dc:creator>YVES1</dc:creator>
      <dc:date>2011-07-05T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow : null pointer exception with length() method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300522#M72742</link>
      <description>Hi Yves
&lt;BR /&gt;Glad to hear that, thanks for your feedback!
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 05 Jul 2011 08:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-null-pointer-exception-with-length-method/m-p/2300522#M72742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-05T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

