if seq is null, dont check pdb
authoramwaterhouse <Andrew Waterhouse>
Tue, 14 Jun 2005 15:03:55 +0000 (15:03 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 14 Jun 2005 15:03:55 +0000 (15:03 +0000)
src/jalview/gui/PopupMenu.java

index 6a36fb3..828bbe8 100755 (executable)
@@ -96,7 +96,7 @@ public class PopupMenu
       e.printStackTrace();\r
     }\r
 \r
-    if(seq.getPDBId()==null)\r
+    if(seq==null || seq.getPDBId()==null)\r
       pdbMenuItem.setVisible(false);\r
 \r
     SequenceGroup sg = ap.av.getSelectionGroup();\r