summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2003-04-09 19:30:23 +0000
committerGrant Gayed <ggayed>2003-04-09 19:30:23 +0000
commit0543793bc85090aa74bcc2c3d31d7a9c6a96da34 (patch)
treec80dfc997ed3cfa858e748316a1a1ab7b8243996 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
parent049f1bdfc153176790d7ef6df90947f689d390dd (diff)
downloadeclipse.platform.swt-0543793bc85090aa74bcc2c3d31d7a9c6a96da34.tar.gz
eclipse.platform.swt-0543793bc85090aa74bcc2c3d31d7a9c6a96da34.tar.xz
eclipse.platform.swt-0543793bc85090aa74bcc2c3d31d7a9c6a96da34.zip
fix javadoc
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
index 7d48b4967e..19395c956e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
@@ -176,7 +176,7 @@ public ToolItem getItem (int index) {
* @return the item at the given point
*
* @exception IllegalArgumentException <ul>
- * <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
+ * <li>ERROR_NULL_ARGUMENT - if the point is null</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
@@ -185,6 +185,7 @@ public ToolItem getItem (int index) {
*/
public ToolItem getItem (Point point) {
ToolItem[] items = getItems();
+ if (point == null) error (SWT.ERROR_NULL_ARGUMENT);
for (int i=0; i<items.length; i++) {
if (items[i].getBounds().contains(point)) return items[i];
}