From 2adef1fc6380e02a153d373fed9e1e06089d83db Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 6 Aug 2007 14:25:29 +0000 Subject: [PATCH] null pointer exception blocked redraw of annotation added to alignment via applet's annotations parameter --- src/jalview/appletgui/AnnotationPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/appletgui/AnnotationPanel.java b/src/jalview/appletgui/AnnotationPanel.java index afaf10f..41665b5 100755 --- a/src/jalview/appletgui/AnnotationPanel.java +++ b/src/jalview/appletgui/AnnotationPanel.java @@ -649,7 +649,7 @@ public class AnnotationPanel if (av.validCharWidth && validRes && - (row.annotations[column].displayCharacter.length() > 0)) + (row.annotations[column].displayCharacter!=null && row.annotations[column].displayCharacter.length() > 0)) { int charOffset = (av.charWidth - fm.charWidth(row.annotations[column]. -- 1.7.10.2