From: kiramt Date: Mon, 9 Jan 2017 13:15:30 +0000 (+0000) Subject: JAL-2316 Prevent applet from loading null links into Link menu X-Git-Tag: Release_2_10_3b1~346^2~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c950c0a8d489e88e15ca9c6642b4f2d2f407a762;p=jalview.git JAL-2316 Prevent applet from loading null links into Link menu --- diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index cc021f5..b03a638 100755 --- 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())