diff options
author | vrubezhny | 2014-02-14 16:24:56 +0000 |
---|---|---|
committer | vrubezhny | 2014-02-14 16:27:23 +0000 |
commit | ed9b28cefaf8e8864570e67cace5dfbf98e5907b (patch) | |
tree | 222e2ea8d6e51e46dc821a7194486c0c616287d9 | |
parent | a09e25a89e324209c2d4fb3cc3425e675339ea3f (diff) | |
download | webtools.jsdt-ed9b28cefaf8e8864570e67cace5dfbf98e5907b.tar.gz webtools.jsdt-ed9b28cefaf8e8864570e67cace5dfbf98e5907b.tar.xz webtools.jsdt-ed9b28cefaf8e8864570e67cace5dfbf98e5907b.zip |
[428212] Exception in Decorator. The 'JavaScript Function Override Indicator' decorator will be disabled.
An additional check is added due to prevent AIOOB exception
Signed-off-by: vrubezhny <vrubezhny@exadel.com>
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/SearchableEnvironment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/SearchableEnvironment.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/SearchableEnvironment.java index 595bdf905..a41cc4539 100644 --- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/SearchableEnvironment.java +++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/SearchableEnvironment.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. + * Copyright (c) 2000, 2014 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 @@ -156,6 +156,9 @@ public class SearchableEnvironment implements INameEnvironment, else if (sourceType.getHandle().getClassFile()!=null) types = sourceType.getHandle().getClassFile().getTypes(); + if (types == null || types.length == 0) + return null; + ISourceType[] sourceTypes = new ISourceType[types.length]; // in the resulting collection, ensure the requested type is |