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:
f047ab2
)
JAL-3858 check annotation row and column positioning in case we have been called...
author
James Procter
<j.procter@dundee.ac.uk>
Thu, 28 Sep 2023 16:57:54 +0000
(17:57 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Thu, 28 Sep 2023 16:58:44 +0000
(17:58 +0100)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
f01d7be
..
98e9b3e
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-631,7
+631,12
@@
public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
return false;
}
int yOffset = rowIndex[1];
-
+ AlignmentAnnotation[] allAnnotation = av.getAlignment()
+ .getAlignmentAnnotation();
+ if (allAnnotation==null || rowIndex[0]<0 || rowIndex[0]>allAnnotation.length)
+ {
+ return false;
+ }
AlignmentAnnotation clicked = av.getAlignment()
.getAlignmentAnnotation()[rowIndex[0]];
if (clicked.graph != AlignmentAnnotation.CONTACT_MAP)