null exception when annotation created with no description.
authorjprocter <Jim Procter>
Mon, 19 Mar 2007 14:05:37 +0000 (14:05 +0000)
committerjprocter <Jim Procter>
Mon, 19 Mar 2007 14:05:37 +0000 (14:05 +0000)
src/jalview/gui/AnnotationLabels.java

index 81a3cd2..9590d80 100755 (executable)
@@ -245,7 +245,7 @@ public class AnnotationLabels
     annotation.label = dialog.getName();
 
     String text = dialog.getDescription();
-    if (text.length() == 0)
+    if (text!=null && text.length() == 0)
     {
       text = null;
     }