From: jprocter Date: Mon, 19 Mar 2007 14:05:37 +0000 (+0000) Subject: null exception when annotation created with no description. X-Git-Tag: Release_2_3~324 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7e1770e6de8e4cb62329b5d40346c7403e92696c;p=jalview.git null exception when annotation created with no description. --- 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; }