JAL-2316 Prevent applet from loading null links into Link menu
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 9 Jan 2017 13:15:30 +0000 (13:15 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 9 Jan 2017 13:15:30 +0000 (13:15 +0000)
src/jalview/appletgui/IdPanel.java

index cc021f5..b03a638 100755 (executable)
@@ -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())