diff options
author | Kevin Barnes <krbarnes> | 2008-06-17 15:04:13 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2008-06-17 15:04:13 +0000 |
commit | 3d2a453bda886f0c6fab2ccbff180fbbe968e493 (patch) | |
tree | 73de2b0f0f0918eddece4487c8db78b5f2750eb8 | |
parent | 46ff5fc529ab224d85a7cd4cf117fa05d3afee3b (diff) | |
download | eclipse.platform.swt-3d2a453bda886f0c6fab2ccbff180fbbe968e493.tar.gz eclipse.platform.swt-3d2a453bda886f0c6fab2ccbff180fbbe968e493.tar.xz eclipse.platform.swt-3d2a453bda886f0c6fab2ccbff180fbbe968e493.zip |
null check
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java index f9371c64d2..389f3c3e43 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java @@ -801,7 +801,7 @@ public void setText (String string) { public void setToolTipText (String string) { checkWidget(); toolTipText = string; - view.setToolTip(NSString.stringWith(string)); + view.setToolTip(string != null ? NSString.stringWith(string) : null); } void setVisible (boolean visible) { |