git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
052b99e
)
Remove group if sequences are null
author
amwaterhouse
<Andrew Waterhouse>
Wed, 6 Jul 2005 12:21:25 +0000
(12:21 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 6 Jul 2005 12:21:25 +0000
(12:21 +0000)
src/jalview/datamodel/Alignment.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Alignment.java
b/src/jalview/datamodel/Alignment.java
index
28849b6
..
61735ee
100755
(executable)
--- a/
src/jalview/datamodel/Alignment.java
+++ b/
src/jalview/datamodel/Alignment.java
@@
-334,9
+334,16
@@
public class Alignment implements AlignmentI
{
\r
Vector temp = new Vector();
\r
\r
- for (int i = 0; i < this.groups.size(); i++)
\r
+ int gSize = groups.size();
\r
+ for (int i = 0; i < gSize; i++)
\r
{
\r
SequenceGroup sg = (SequenceGroup) groups.elementAt(i);
\r
+ if(sg==null || sg.sequences==null)
\r
+ {
\r
+ this.deleteGroup(sg);
\r
+ gSize--;
\r
+ continue;
\r
+ }
\r
\r
if (sg.sequences.contains(s))
\r
{
\r