From c834ec02c02dec46f84960605bd7490aa8ac5a3a Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 26 Apr 2007 10:35:43 +0000 Subject: [PATCH] fix for null annotations --- src/jalview/datamodel/AlignmentAnnotation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index 04eab48..d3d25d9 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -354,6 +354,8 @@ Loading... */ public void restrict(int startRes, int endRes) { + if (annotations==null) + return; Annotation[] temp = new Annotation[endRes-startRes+1]; if (startRes