setting and merging selected columns from another selection object
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 052932b..4f102ad 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -633,7 +633,7 @@ public class SeqCanvas extends JComponent
       int blockStart = startRes;
       int blockEnd = endRes;
 
-      for (int i = 0; i < regions.size(); i++)
+      for (int i = 0; regions!=null && i < regions.size(); i++)
       {
         int[] region = (int[]) regions.elementAt(i);
         int hideStart = region[0];