\r
int start=0, end = viewport.alignment.getWidth();\r
\r
- if(viewport.getSelectionGroup()!=null\r
- || viewport.getSelectionGroup().sequences.size()<1)\r
+ if (viewport.getSelectionGroup() != null\r
+ && viewport.getSelectionGroup().sequences != null\r
+ && viewport.getSelectionGroup().sequences.size()>0)\r
{\r
seqs = viewport.getSelectionGroup().sequences;\r
start = viewport.getSelectionGroup().getStartRes();\r
int start = 0;\r
int end = viewport.alignment.getWidth();\r
\r
+\r
if (viewport.getSelectionGroup() != null\r
- || viewport.getSelectionGroup().sequences.size()<1)\r
+ && viewport.getSelectionGroup().sequences != null\r
+ && viewport.getSelectionGroup().sequences.size()>0)\r
{\r
seqs = viewport.getSelectionGroup().sequences;\r
start = viewport.getSelectionGroup().getStartRes();\r