Merge branch 'hotfix/JAL-1524' into Release_2_8_2_Branch
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Jun 2014 10:41:20 +0000 (11:41 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Jun 2014 10:41:20 +0000 (11:41 +0100)
1  2 
src/jalview/gui/PopupMenu.java

@@@ -519,9 -478,9 +519,9 @@@ public class PopupMenu extends JPopupMe
        {
          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));
 +          reppdb.put(pes.get(0).getId(), pes.get(0));
            for (PDBEntry pe : pes)
            {
              pdbe.put(pe.getId(), pe);