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:
d7bdcee
)
avoid exceptions for orphaned windows
author
jprocter
<Jim Procter>
Fri, 18 Feb 2011 17:18:57 +0000
(17:18 +0000)
committer
jprocter
<Jim Procter>
Fri, 18 Feb 2011 17:18:57 +0000
(17:18 +0000)
src/jalview/gui/PaintRefresher.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/PaintRefresher.java
b/src/jalview/gui/PaintRefresher.java
index
f974f0a
..
0a1c9f3
100755
(executable)
--- a/
src/jalview/gui/PaintRefresher.java
+++ b/
src/jalview/gui/PaintRefresher.java
@@
-224,7
+224,9
@@
public class PaintRefresher
static AlignmentPanel[] getAssociatedPanels(String id)
{
+ if (components==null) { return new AlignmentPanel[0]; };
Vector comps = (Vector) components.get(id);
+ if (comps==null) { return new AlignmentPanel[0]; };
Vector tmp = new Vector();
int i, iSize = comps.size();
for (i = 0; i < iSize; i++)