Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 64204b93 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- protected the ingest against null alignments

parent ef632227
No related branches found
No related tags found
No related merge requests found
...@@ -595,9 +595,11 @@ public class BasicAlignment implements Alignment { ...@@ -595,9 +595,11 @@ public class BasicAlignment implements Alignment {
* useful * useful
*/ */
public void ingest(Alignment alignment) throws AlignmentException { public void ingest(Alignment alignment) throws AlignmentException {
for (Enumeration e = alignment.getElements(); e.hasMoreElements();) { if ( alignment != null ) {
addCell((Cell)e.nextElement()); for (Enumeration e = alignment.getElements(); e.hasMoreElements();) {
}; addCell((Cell)e.nextElement());
}
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment