From: jprocter Date: Fri, 30 Nov 2007 13:55:15 +0000 (+0000) Subject: null pointer bugfix X-Git-Tag: Release_2_4~174 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c0d807bc27c3724331c553692b1836049811c9fc;p=jalview.git null pointer bugfix --- diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index b59417a..8cfe728 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -357,6 +357,11 @@ Loading... */ public void restrict(int startRes, int endRes) { + if (annotations==null) + { + // non-positional + return; + } if (startRes<0) startRes=0; if (startRes>=annotations.length)