From: jprocter Date: Tue, 27 Sep 2011 10:40:30 +0000 (+0100) Subject: same overzeaolous logic (JAL-915) X-Git-Tag: Release_2_7~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d5f02d0f3e1a6a9767ef065ebe8f56902c041a33;p=jalview.git same overzeaolous logic (JAL-915) --- 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