summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover <steve>2008-08-14 20:02:39 +0000
committerSteve Northover <steve>2008-08-14 20:02:39 +0000
commit0e7b89d527aa1478fe1075a69b89acba8e55ee2d (patch)
tree94be18f84674103503d0742ecf8dd0f3f583295e
parent344d7babf552c1561c062e6308cbd470e18d54d5 (diff)
downloadeclipse.platform.swt-0e7b89d527aa1478fe1075a69b89acba8e55ee2d.tar.gz
eclipse.platform.swt-0e7b89d527aa1478fe1075a69b89acba8e55ee2d.tar.xz
eclipse.platform.swt-0e7b89d527aa1478fe1075a69b89acba8e55ee2d.zip
244108 - [WorkbenchLauncher] ArrayIndexOutOfBoundsException in IDEApplication.start() when launching partially branded product
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Decorations.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Decorations.java
index 5946d58976..23e6538b0b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Decorations.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Decorations.java
@@ -533,7 +533,11 @@ public void setImages (Image [] images) {
sort (bestImages);
images = bestImages;
}
- OS.SetApplicationDockTileImage (images [0].handle);
+ if (images != null && images.length > 0) {
+ OS.SetApplicationDockTileImage (images [0].handle);
+ } else {
+ OS.RestoreApplicationDockTileImage ();
+ }
}
}