*/
public jalview.datamodel.SequenceI[] getSequences(boolean noNa,
boolean noPeptide, String sourceDb)
- {
+ { //TODO: ensure emblEntry.getSequences behaves correctly for returning all cases of noNa and noPeptide
Vector seqs = new Vector();
Sequence dna = null;
if (!noNa)
{
+ // In theory we still need to create this if noNa is set to avoid a null pointer exception
dna = new Sequence(sourceDb + "|" + accession, sequence.getSequence());
dna.setDescription(desc);
dna.addDBRef(new DBRefEntry(sourceDb, version, accession));
// TODO: transform EMBL Database refs to canonical form
if (dbRefs != null)
for (Iterator i = dbRefs.iterator(); i.hasNext(); dna
- .addDBRef((DBRefEntry) i.next()))
- ;
+ .addDBRef((DBRefEntry) i.next()))
+ ;
}
try
{