Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-02-18 19:38:24 +0000
committerChris Goldthorpe2011-02-18 19:38:24 +0000
commit09daa7362a5415c25a74de39c4364c539b7d6f17 (patch)
tree1bbb97c154bc8f9d25f7c65684504ced818c95e8 /org.eclipse.ui.intro
parent865c2c13caec172be0d88564a65763e4e4e6a483 (diff)
downloadeclipse.platform.ua-09daa7362a5415c25a74de39c4364c539b7d6f17.tar.gz
eclipse.platform.ua-09daa7362a5415c25a74de39c4364c539b7d6f17.tar.xz
eclipse.platform.ua-09daa7362a5415c25a74de39c4364c539b7d6f17.zip
Bug 337292 - [Intro] Using the CustomizableIntroPart, after having changed the welcome page's content by registryChanged, moving to standby state causes an ArrayIndexOutOfBoundsException
Diffstat (limited to 'org.eclipse.ui.intro')
-rw-r--r--org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/History.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/History.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/History.java
index dcd10dfff..7d17b3057 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/History.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/History.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2005 IBM Corporation and others.
+ * Copyright (c) 2004, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -237,6 +237,9 @@ public class History {
}
public boolean currentLocationIsUrl() {
+ if (history.size() == 0) {
+ return false;
+ }
return getCurrentLocation().isURL();
}

Back to the top