<?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 exception in NodeFigure.setHint in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224371#M17109</link>
    <description>&lt;P&gt;This is how to reproduce:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Create a new job&lt;/LI&gt;
 &lt;LI&gt;drag a tDBInput component on the canvas&lt;/LI&gt;
 &lt;LI&gt;save job&lt;/LI&gt;
 &lt;LI&gt;close job&lt;/LI&gt;
 &lt;LI&gt;open job&lt;/LI&gt;
 &lt;LI&gt;&amp;lt;crash&amp;gt;&lt;/LI&gt;
 &lt;LI&gt;while keeping the UI open, a dialog with a NullPointerException pops up all the time&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope a fix can make it into 7.3.4, this happened to me before, and it is greatly annoying.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 11:03:48 GMT</pubDate>
    <dc:creator>reinier1</dc:creator>
    <dc:date>2020-06-18T11:03:48Z</dc:date>
    <item>
      <title>Null pointer exception in NodeFigure.setHint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224369#M17107</link>
      <description>&lt;P&gt;When I open my job in TOS 7.3.1, the editor does not open, instead there is an error:&lt;/P&gt; 
&lt;P&gt;java.lang.NullPointerException&lt;BR /&gt;at org.talend.designer.core.ui.editor.nodes.NodeFigure.setHint(NodeFigure.java:110)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is &lt;A href="https://github.com/Talend/tdi-studio-se/blob/d7142d53680a8a9e844f966fc4995341ae8b85c8/main/plugins/org.talend.designer.core/src/main/java/org/talend/designer/core/ui/editor/nodes/NodeFigure.java#L110" target="_self" rel="nofollow noopener noreferrer"&gt;setHint&lt;/A&gt;:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;   public void setHint(String hintText) {
        if (hintText.equals("")) { //$NON-NLS-1$
            setToolTip(null);
        } else {
            hint.setText(hintText);
            setToolTip(hint);
        }
    }&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Apparently it is possible for the hintText to be null, instead of empty.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, first, could you check for that, in the next release?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Secondly, how can I edit my .item file to make sure hintText will be something else than null. (I checked comment and MEMO attributes for anomalies, but I can not find anything abnormal in those)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224369#M17107</guid>
      <dc:creator>reinier1</dc:creator>
      <dc:date>2024-11-16T02:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Null pointer exception in NodeFigure.setHint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224370#M17108</link>
      <description>&lt;P&gt;The culprit was a node I had added right before saving:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;  &amp;lt;node componentName="tDBInput" offsetLabelX="0" offsetLabelY="0" posX="224" posY="-32"&amp;gt;
    &amp;lt;elementParameter field="TEXT" name="UNIQUE_NAME" value="tDBInput_1" show="false"/&amp;gt;
  &amp;lt;/node&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;It seems. That node might be invalid, but there are nicer ways of telling the user &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 10:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224370#M17108</guid>
      <dc:creator>reinier1</dc:creator>
      <dc:date>2020-06-18T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Null pointer exception in NodeFigure.setHint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224371#M17109</link>
      <description>&lt;P&gt;This is how to reproduce:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Create a new job&lt;/LI&gt;
 &lt;LI&gt;drag a tDBInput component on the canvas&lt;/LI&gt;
 &lt;LI&gt;save job&lt;/LI&gt;
 &lt;LI&gt;close job&lt;/LI&gt;
 &lt;LI&gt;open job&lt;/LI&gt;
 &lt;LI&gt;&amp;lt;crash&amp;gt;&lt;/LI&gt;
 &lt;LI&gt;while keeping the UI open, a dialog with a NullPointerException pops up all the time&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope a fix can make it into 7.3.4, this happened to me before, and it is greatly annoying.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 11:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-pointer-exception-in-NodeFigure-setHint/m-p/2224371#M17109</guid>
      <dc:creator>reinier1</dc:creator>
      <dc:date>2020-06-18T11:03:48Z</dc:date>
    </item>
  </channel>
</rss>

