From: amwaterhouse Date: Wed, 25 Oct 2006 14:57:02 +0000 (+0000) Subject: Check hiddenSequence before placing in tmp X-Git-Tag: Release_2_2~231 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d1a58585358deed317674daeeac5fb5be66637ab;p=jalview.git Check hiddenSequence before placing in tmp --- diff --git a/src/jalview/datamodel/HiddenSequences.java b/src/jalview/datamodel/HiddenSequences.java index 17a6c11..9a4e7c6 100755 --- a/src/jalview/datamodel/HiddenSequences.java +++ b/src/jalview/datamodel/HiddenSequences.java @@ -75,8 +75,8 @@ public class HiddenSequences { if (i > deletionIndex) tmp[i-1] = hiddenSequences[i]; - else - tmp[i] = hiddenSequences[i]; + else if(hiddenSequences[i]!=null) + tmp[i] = hiddenSequences[i]; } hiddenSequences = tmp; @@ -111,7 +111,7 @@ public class HiddenSequences alignmentIndex = adjustForHiddenSeqs(alignmentIndex); if(hiddenSequences[alignmentIndex]!=null) - System.out.println("ERROR!!!!!!!!!!!"); + System.out.println("ERROR!!!!!!!!!!!"); hiddenSequences[alignmentIndex] = sequence;