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:
12fdd79
)
nullpointer bugfix (another repaint racecondition)
author
jprocter
<Jim Procter>
Thu, 15 Apr 2010 09:20:28 +0000
(09:20 +0000)
committer
jprocter
<Jim Procter>
Thu, 15 Apr 2010 09:20:28 +0000
(09:20 +0000)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
77b8938
..
ad5e052
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-695,7
+695,10
@@
public class SeqCanvas extends JComponent
{
nextSeq = av.alignment.getSequenceAt(i);
if (nextSeq==null)
+ {
+ // occasionally, a race condition occurs such that the alignment row is empty
continue;
+ }
sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
startRes, endRes, offset + ((i - startSeq) * av.charHeight));