From a3e7e0f868ce9911e1b0140bfef1ca2bc662f1e6 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 Apr 2007 14:43:36 +0000 Subject: [PATCH] Make sure mainContainer and owner are not null --- src/jalview/appletgui/Tooltip.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/appletgui/Tooltip.java b/src/jalview/appletgui/Tooltip.java index 90f2e97..7de5193 100755 --- a/src/jalview/appletgui/Tooltip.java +++ b/src/jalview/appletgui/Tooltip.java @@ -137,6 +137,10 @@ public class Tooltip void setTipLocation(MouseEvent evt) { + if(mainContainer==null || owner==null) + { + return; + } setLocation( (owner.getLocationOnScreen().x - mainContainer.getLocationOnScreen().x) + evt.getX(), (owner.getLocationOnScreen().y - -- 1.7.10.2