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:
f419827
)
JAL-2316 Prevent applet from loading null links into Link menu
author
kiramt
<k.mourao@dundee.ac.uk>
Mon, 9 Jan 2017 13:15:30 +0000
(13:15 +0000)
committer
kiramt
<k.mourao@dundee.ac.uk>
Mon, 9 Jan 2017 13:15:30 +0000
(13:15 +0000)
src/jalview/appletgui/IdPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/IdPanel.java
b/src/jalview/appletgui/IdPanel.java
index
cc021f5
..
b03a638
100755
(executable)
--- a/
src/jalview/appletgui/IdPanel.java
+++ b/
src/jalview/appletgui/IdPanel.java
@@
-78,7
+78,11
@@
public class IdPanel extends Panel implements MouseListener,
label = av.applet.getParameter("linkLabel_" + i);
url = av.applet.getParameter("linkURL_" + i);
- urlList.put(label, url);
+ // only add non-null parameters
+ if (label != null)
+ {
+ urlList.put(label, url);
+ }
}
if (!urlList.isEmpty())