diff options
author | Steve Northover <steve> | 2008-08-14 20:02:39 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2008-08-14 20:02:39 +0000 |
commit | 0e7b89d527aa1478fe1075a69b89acba8e55ee2d (patch) | |
tree | 94be18f84674103503d0742ecf8dd0f3f583295e | |
parent | 344d7babf552c1561c062e6308cbd470e18d54d5 (diff) | |
download | eclipse.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.java | 6 |
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 (); + } } } |