From d1a58585358deed317674daeeac5fb5be66637ab Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 25 Oct 2006 14:57:02 +0000 Subject: [PATCH] Check hiddenSequence before placing in tmp --- src/jalview/datamodel/HiddenSequences.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 1.7.10.2