From: jprocter Date: Thu, 26 Apr 2007 10:35:43 +0000 (+0000) Subject: fix for null annotations X-Git-Tag: Release_2_3~168 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c834ec02c02dec46f84960605bd7490aa8ac5a3a;p=jalview.git fix for null annotations --- 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