git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88bc025
)
fix for null annotations
author
jprocter
<Jim Procter>
Thu, 26 Apr 2007 10:35:43 +0000
(10:35 +0000)
committer
jprocter
<Jim Procter>
Thu, 26 Apr 2007 10:35:43 +0000
(10:35 +0000)
src/jalview/datamodel/AlignmentAnnotation.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/AlignmentAnnotation.java
b/src/jalview/datamodel/AlignmentAnnotation.java
index
04eab48
..
d3d25d9
100755
(executable)
--- 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<annotations.length)
{