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:
1eb2e0f
)
JAL-2634 Added null test for graphics in AnnotationPanel::fastPaint
author
kiramt
<k.mourao@dundee.ac.uk>
Mon, 31 Jul 2017 09:23:04 +0000
(11:23 +0200)
committer
kiramt
<k.mourao@dundee.ac.uk>
Mon, 31 Jul 2017 09:23:04 +0000
(11:23 +0200)
src/jalview/appletgui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/AnnotationPanel.java
b/src/jalview/appletgui/AnnotationPanel.java
index
39b718d
..
417bb06
100755
(executable)
--- a/
src/jalview/appletgui/AnnotationPanel.java
+++ b/
src/jalview/appletgui/AnnotationPanel.java
@@
-634,7
+634,7
@@
public class AnnotationPanel extends Panel implements AwtRenderPanelI,
public void fastPaint(int horizontal)
{
- if (horizontal == 0
+ if (horizontal == 0 || gg == null
|| av.getAlignment().getAlignmentAnnotation() == null
|| av.getAlignment().getAlignmentAnnotation().length < 1)
{