From 8dac3344cd26815d4f6060500117c0f6559d8090 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 12 Jun 2014 11:40:15 +0100 Subject: [PATCH] JAL-1524 fix --- src/jalview/gui/PopupMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 67bc00f..e2b6536 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -478,7 +478,7 @@ public class PopupMenu extends JPopupMenu { Vector pes = (Vector) 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) -- 1.7.10.2