From: amwaterhouse Date: Mon, 23 Apr 2007 11:47:10 +0000 (+0000) Subject: Check displayChar is not null X-Git-Tag: Release_2_3~194 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e1588f58919f3c8779c64737cef793a8e3e5f658;p=jalview.git Check displayChar is not null --- 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);