From 7e1770e6de8e4cb62329b5d40346c7403e92696c Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 19 Mar 2007 14:05:37 +0000 Subject: [PATCH] null exception when annotation created with no description. --- src/jalview/gui/AnnotationLabels.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 81a3cd2..9590d80 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -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; } -- 1.7.10.2