From: jprocter Date: Mon, 6 Aug 2007 14:25:29 +0000 (+0000) Subject: null pointer exception blocked redraw of annotation added to alignment via applet... X-Git-Tag: Release_2_4~323 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2adef1fc6380e02a153d373fed9e1e06089d83db;p=jalview.git null pointer exception blocked redraw of annotation added to alignment via applet's annotations parameter --- 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].