JAL-1524 fix
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Jun 2014 10:40:15 +0000 (11:40 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Jun 2014 10:40:15 +0000 (11:40 +0100)
src/jalview/gui/PopupMenu.java

index 67bc00f..e2b6536 100644 (file)
@@ -478,7 +478,7 @@ public class PopupMenu extends JPopupMenu
       {
         Vector<PDBEntry> pes = (Vector<PDBEntry>) sq.getDatasetSequence()
                 .getPDBId();
-        if (pes != null)
+        if (pes != null && pes.size()>0)
         {
           reppdb.put(pes.get(0).getId(),pes.get(0));
           for (PDBEntry pe : pes)