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:
3b3fdaf
)
Make sure mainContainer and owner are not null
author
amwaterhouse
<Andrew Waterhouse>
Fri, 27 Apr 2007 14:43:36 +0000
(14:43 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 27 Apr 2007 14:43:36 +0000
(14:43 +0000)
src/jalview/appletgui/Tooltip.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/Tooltip.java
b/src/jalview/appletgui/Tooltip.java
index
90f2e97
..
7de5193
100755
(executable)
--- a/
src/jalview/appletgui/Tooltip.java
+++ b/
src/jalview/appletgui/Tooltip.java
@@
-137,6
+137,10
@@
public class Tooltip
\r
void setTipLocation(MouseEvent evt)
\r
{
\r
+ if(mainContainer==null || owner==null)
\r
+ {
\r
+ return;
\r
+ }
\r
setLocation( (owner.getLocationOnScreen().x
\r
- mainContainer.getLocationOnScreen().x) + evt.getX(),
\r
(owner.getLocationOnScreen().y -
\r