From d5f02d0f3e1a6a9767ef065ebe8f56902c041a33 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 27 Sep 2011 11:40:30 +0100 Subject: [PATCH] same overzeaolous logic (JAL-915) --- src/jalview/gui/PopupMenu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index da95ae0..1cc4cd7 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -445,7 +445,7 @@ public class PopupMenu extends JPopupMenu structureMenu.setVisible(false); } - if (seq !=null && links != null && links.size() > 0) + if (links != null && links.size() > 0) { JMenu linkMenu = new JMenu("Link"); @@ -470,7 +470,7 @@ public class PopupMenu extends JPopupMenu continue; } final String label = urlLink.getLabel(); - if (urlLink.isDynamic()) + if (seq!=null && urlLink.isDynamic()) { // collect matching db-refs -- 1.7.10.2