comment concerning null exceptions generated when annotations read from a file are...
authorjprocter <Jim Procter>
Mon, 6 Aug 2007 14:40:34 +0000 (14:40 +0000)
committerjprocter <Jim Procter>
Mon, 6 Aug 2007 14:40:34 +0000 (14:40 +0000)
src/jalview/io/AnnotationFile.java

index f8c2c2a..4acd2a1 100755 (executable)
@@ -594,7 +594,14 @@ public class AnnotationFile
       displayChar = desc;\r
       desc = tmp;\r
     }\r
-\r
+    /*\r
+     * In principle, this code will ensure that the Annotation element generated is renderable by any of the applet or application rendering code\r
+     * but instead we check for null strings when the display character is rendered. \r
+    if (displayChar==null)\r
+    {\r
+      displayChar="";\r
+    }\r
+    */\r
     Annotation anot = new Annotation(displayChar, desc, ss, value);\r
 \r
     anot.colour = colour;\r