Check pdbid size >0
authoramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 15:32:46 +0000 (15:32 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 15:32:46 +0000 (15:32 +0000)
src/jalview/gui/PopupMenu.java

index 64339b3..d43a015 100755 (executable)
@@ -150,7 +150,8 @@ public class PopupMenu
       sequenceMenu.setText(sequence.getName());\r
 \r
       JMenuItem menuItem;\r
-      if (seq.getDatasetSequence().getPDBId() != null)\r
+      if (seq.getDatasetSequence().getPDBId() != null\r
+          && seq.getDatasetSequence().getPDBId().size()>0)\r
       {\r
         java.util.Enumeration e = seq.getDatasetSequence().getPDBId().\r
             elements();\r