From 0c31b158596db296fed06695f8068940c8a843c2 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 Apr 2007 15:32:46 +0000 Subject: [PATCH] Check pdbid size >0 --- src/jalview/gui/PopupMenu.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 64339b3..d43a015 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -150,7 +150,8 @@ public class PopupMenu sequenceMenu.setText(sequence.getName()); JMenuItem menuItem; - if (seq.getDatasetSequence().getPDBId() != null) + if (seq.getDatasetSequence().getPDBId() != null + && seq.getDatasetSequence().getPDBId().size()>0) { java.util.Enumeration e = seq.getDatasetSequence().getPDBId(). elements(); -- 1.7.10.2