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:
fc39960
)
null pointer bugfix
author
jprocter
<Jim Procter>
Fri, 30 Nov 2007 13:55:15 +0000
(13:55 +0000)
committer
jprocter
<Jim Procter>
Fri, 30 Nov 2007 13:55:15 +0000
(13:55 +0000)
src/jalview/datamodel/AlignmentAnnotation.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/AlignmentAnnotation.java
b/src/jalview/datamodel/AlignmentAnnotation.java
index
b59417a
..
8cfe728
100755
(executable)
--- 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)