Skip to content
Snippets Groups Projects
Commit f5c514f4 authored by tjc's avatar tjc
Browse files

fix to show all children in tree if exons missing

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6579 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 1661849c
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/genebuilder/GeneComponentTree.java,v 1.21 2007-10-09 09:42:55 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/genebuilder/GeneComponentTree.java,v 1.22 2007-10-16 16:02:47 tjc Exp $
*/
package uk.ac.sanger.artemis.components.genebuilder;
......@@ -149,16 +149,16 @@ public class GeneComponentTree extends JTree
// exons
List exons = chado_gene.getSplicedFeaturesOfTranscript(transcript_id);
if(exons == null)
continue;
for(int j=0; j<exons.size(); j++)
if(exons != null)
{
exon = (Feature)exons.get(j);
exon_id = (String)exon.getQualifierByName("ID").getValues().get(0);
exon_node = new DefaultMutableTreeNode(exon_id);
transcript_node.add(exon_node);
for(int j = 0; j < exons.size(); j++)
{
exon = (Feature) exons.get(j);
exon_id = (String) exon.getQualifierByName("ID").getValues().get(0);
exon_node = new DefaultMutableTreeNode(exon_id);
transcript_node.add(exon_node);
}
}
// utr & other features
......
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