From 4ccce273c55bc45e8097b284c3d90319f9279646 Mon Sep 17 00:00:00 2001 From: cmzmasek Date: Sun, 30 Dec 2012 05:27:19 +0000 Subject: [PATCH] if ( !lineage.get( i ).equalsIgnoreCase( up_taxonomy.getLineage().get( i ) ) ) { becomes: if ( i == up_taxonomy.getLineage().size() || !lineage.get( i ).equalsIgnoreCase( up_taxonomy.getLineage().get( i ) ) ) { --- forester/java/src/org/forester/analysis/TaxonomyDataManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forester/java/src/org/forester/analysis/TaxonomyDataManager.java b/forester/java/src/org/forester/analysis/TaxonomyDataManager.java index 48b434c..302a93c 100644 --- a/forester/java/src/org/forester/analysis/TaxonomyDataManager.java +++ b/forester/java/src/org/forester/analysis/TaxonomyDataManager.java @@ -337,7 +337,7 @@ public final class TaxonomyDataManager extends RunnableProcess { for( final UniProtTaxonomy up_taxonomy : up_taxonomies ) { boolean match = true; I: for( int i = 0; i < lineage.size(); ++i ) { - if ( !lineage.get( i ).equalsIgnoreCase( up_taxonomy.getLineage().get( i ) ) ) { + if ( i == up_taxonomy.getLineage().size() || !lineage.get( i ).equalsIgnoreCase( up_taxonomy.getLineage().get( i ) ) ) { match = false; break I; } -- 1.7.10.2