Null hidden cols check
authoramwaterhouse <Andrew Waterhouse>
Wed, 9 Aug 2006 15:55:26 +0000 (15:55 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 9 Aug 2006 15:55:26 +0000 (15:55 +0000)
src/jalview/gui/AlignFrame.java

index 14bf680..790a17a 100755 (executable)
@@ -712,7 +712,7 @@ public class AlignFrame
         .setContents(new StringSelection(output), Desktop.instance);\r
 \r
     Vector hiddenColumns = null;\r
-    if(viewport.hasHiddenColumns && viewport.getSelectionGroup()!=null)\r
+    if(viewport.hasHiddenColumns)\r
     {\r
       hiddenColumns =new Vector();\r
       int hiddenOffset = viewport.getSelectionGroup().getStartRes();\r
@@ -859,7 +859,7 @@ public class AlignFrame
        AlignFrame af = new AlignFrame(alignment);\r
        String newtitle = new String("Copied sequences");\r
 \r
-       if(Desktop.jalviewClipboard[2]!=null)\r
+       if(Desktop.jalviewClipboard!=null && Desktop.jalviewClipboard[2]!=null)\r
          {\r
            Vector hc = (Vector)Desktop.jalviewClipboard[2];\r
            for(int i=0; i<hc.size(); i++)\r