From bbfd4560be47ed3e6a2364665716009960064d51 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 28 Oct 2011 15:01:04 +0100 Subject: [PATCH] NPE exception if annotation manually edited --- src/jalview/renderer/AnnotationRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index c3d4ef5..5c03881 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -37,7 +37,7 @@ public class AnnotationRenderer int x2 = (x * charWidth); Regex closeparen = new Regex("(\\))"); - String dc = column == 0 ? "" + String dc = (column == 0 || row.annotations[column-1]==null) ? "" : row.annotations[column - 1].displayCharacter; boolean diffupstream = sCol == 0 || row.annotations[sCol - 1] == null -- 1.7.10.2