From: Jim Procter Date: Thu, 12 Jun 2014 10:40:15 +0000 (+0100) Subject: JAL-1524 fix X-Git-Tag: Release_2_8_2~5^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8dac3344cd26815d4f6060500117c0f6559d8090;p=jalview.git JAL-1524 fix --- 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)