import javax.swing.text.html.HTMLEditorKit;
import javax.swing.text.html.StyleSheet;
+import jalview.bin.Cache;
import jalview.jbgui.*;
import jalview.ws.WSClientI;
{
if (e.getEventType() == EventType.ACTIVATED)
{
+ String url=null;
try
{
- final String url = e.getURL().toString();
+ url = e.getURL().toString();
Desktop.showUrl(url);
} catch (Exception x)
{
+ if (url!=null) {
+ Cache.log.error("Couldn't handle string "+url+" as a URL.");
+ }
// ignore any exceptions due to dud links.
}