title: Java HyperLinkListener JTextPane Null url
body: <p>I have a JTextPane with a HyperLinkListener</p>
  
  <pre><code>  m_textPane.addHyperlinkListener(new HyperlinkListener()
    {
  
      @Override
      public void hyperlinkUpdate(HyperlinkEvent hyperlinkevent)
      {
        EventType eventType = hyperlinkevent.getEventType();
        if (eventType == HyperlinkEvent.EventType.ACTIVATED)
        {
  
           URL url = hyperlinkevent.getURL();
           hyperLinkClicked(hyperlinkevent);
  
        }
      }
    });
  </code></pre>
  
  <p>The JTextPant is created with HTML and in this HTML file I have two Links.</p>
  
  <p></p>
  
  <pre><code>                    &lt;tr&gt;
                          &lt;td valign="top" class="label"&gt;Telefon:&lt;/td&gt;
                          &lt;td class="value"&gt;
  
                              &lt;a href="telnet:[PhoneNumber.primary.number]"&gt;
                                [PhoneNumber.primary.number] 
                              &lt;/a&gt;     
                          &lt;/td&gt;
  
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td valign="top" class="label"&gt;Mobil:&lt;/td&gt;
                          &lt;td class="value"&gt;[PhoneNumber:Mobil.number]&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td valign="top" class="label"&gt;Arbete:&lt;/td&gt;
                          &lt;td class="value"&gt;[PhoneNumber:Arbete.number]&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td valign="top" class="label"&gt;E-post:&lt;/td&gt;
                          &lt;td class="value"&gt;
                              &lt;a href="mailto:[Email.primary.address|]"&gt;
                                  [Email.primary.address|]
                              &lt;/a&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
  </code></pre>
  
  <p>There is no problem getting the mailto protocol, returns "mailto" but the url for the telnet returns null</p>
  
  <p>Any ideas? If any more information is needed tell me :)</p>