From: amwaterhouse Date: Tue, 14 Jun 2005 15:03:55 +0000 (+0000) Subject: if seq is null, dont check pdb X-Git-Tag: Release_2_0~43 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f236ae6cb39cd9efacc6be5bc47798019941e143;p=jalview.git if seq is null, dont check pdb --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 6a36fb3..828bbe8 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -96,7 +96,7 @@ public class PopupMenu e.printStackTrace(); } - if(seq.getPDBId()==null) + if(seq==null || seq.getPDBId()==null) pdbMenuItem.setVisible(false); SequenceGroup sg = ap.av.getSelectionGroup();