From 89d4e185b5ac62ee587b7f75550058ad69ccf067 Mon Sep 17 00:00:00 2001 From: mkersten Date: Sat, 5 Nov 2005 00:57:08 +0000 Subject: minor --- .../src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java index 495abad58..b526046e3 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/ToolTipHandler.java @@ -52,7 +52,7 @@ public class ToolTipHandler { protected Point widgetPosition; // the position hovered over in the Widget; public ToolTipHandler(Shell parentShell) { - if (parentShell == null) return; + if (parentShell == null || parentShell.getDisplay() == null) return; tipShell = createTipShell(parentShell); } @@ -64,7 +64,7 @@ public class ToolTipHandler { gridLayout.marginHeight = 2; tipShell.setLayout(gridLayout); tipShell.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND)); - + tipLabelImage = new Label(tipShell, SWT.NONE); tipLabelImage.setForeground(parent.getDisplay() .getSystemColor(SWT.COLOR_INFO_FOREGROUND)); -- cgit v1.2.3