From c950c0a8d489e88e15ca9c6642b4f2d2f407a762 Mon Sep 17 00:00:00 2001 From: kiramt Date: Mon, 9 Jan 2017 13:15:30 +0000 Subject: [PATCH] JAL-2316 Prevent applet from loading null links into Link menu --- src/jalview/appletgui/IdPanel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()) -- 1.7.10.2