From e1588f58919f3c8779c64737cef793a8e3e5f658 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 23 Apr 2007 11:47:10 +0000 Subject: [PATCH] Check displayChar is not null --- src/jalview/io/AnnotationFile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/io/AnnotationFile.java b/src/jalview/io/AnnotationFile.java index 2ce076a..12c128a 100755 --- a/src/jalview/io/AnnotationFile.java +++ b/src/jalview/io/AnnotationFile.java @@ -140,7 +140,8 @@ public class AnnotationFile text.append(comma + row.annotations[j].secondaryStructure); comma = ","; } - if (row.annotations[j].displayCharacter.length() > 0 + if (row.annotations[j].displayCharacter!=null + && row.annotations[j].displayCharacter.length() > 0 && !row.annotations[j].displayCharacter.equals(" ")) { text.append(comma + row.annotations[j].displayCharacter); @@ -432,7 +433,6 @@ public class AnnotationFile if (refSeq != null) { - System.out.println(refSeq.getName()+" "+refSeqIndex); annotation.createSequenceMapping(refSeq, refSeqIndex, false); annotation.adjustForAlignment(); refSeq.addAlignmentAnnotation(annotation); -- 1.7.10.2