git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9a404d
)
catch invalid URL link exception properly
author
jprocter
<Jim Procter>
Fri, 15 Aug 2008 10:02:16 +0000
(10:02 +0000)
committer
jprocter
<Jim Procter>
Fri, 15 Aug 2008 10:02:16 +0000
(10:02 +0000)
src/jalview/gui/PopupMenu.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/PopupMenu.java
b/src/jalview/gui/PopupMenu.java
index
97f7cba
..
3aa08aa
100755
(executable)
--- a/
src/jalview/gui/PopupMenu.java
+++ b/
src/jalview/gui/PopupMenu.java
@@
-366,7
+366,13
@@
public class PopupMenu
for (int i = 0; i < links.size(); i++)
{
String link = links.elementAt(i).toString();
- UrlLink urlLink = new UrlLink(link);
+ UrlLink urlLink = null;
+ try {
+ urlLink = new UrlLink(link);
+ } catch (Exception foo) {
+ jalview.bin.Cache.log.error("Exception for URLLink '"+link+"'",foo);
+ continue;
+ };
if (!urlLink.isValid())
{
jalview.bin.Cache.log.error(urlLink.getInvalidMessage());