From f4a7230382e12fdb15d339d25c04be9730128b5e Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 6 Aug 2007 14:40:34 +0000 Subject: [PATCH] comment concerning null exceptions generated when annotations read from a file are rendered in the applet --- src/jalview/io/AnnotationFile.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/AnnotationFile.java b/src/jalview/io/AnnotationFile.java index f8c2c2a..4acd2a1 100755 --- a/src/jalview/io/AnnotationFile.java +++ b/src/jalview/io/AnnotationFile.java @@ -594,7 +594,14 @@ public class AnnotationFile displayChar = desc; desc = tmp; } - + /* + * In principle, this code will ensure that the Annotation element generated is renderable by any of the applet or application rendering code + * but instead we check for null strings when the display character is rendered. + if (displayChar==null) + { + displayChar=""; + } + */ Annotation anot = new Annotation(displayChar, desc, ss, value); anot.colour = colour; -- 1.7.10.2