Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvpunski2009-12-24 09:20:17 -0500
committervpunski2009-12-24 09:20:17 -0500
commit84dd49223502107d88cc68650df0b54e4dd699a1 (patch)
tree64c6036dd66784e08d2a4077875547b114d0a775
parent979658942091fed37bfc0c4e34a19877f2bb8710 (diff)
downloadorg.eclipse.pdt-20091227-1204.tar.gz
org.eclipse.pdt-20091227-1204.tar.xz
org.eclipse.pdt-20091227-1204.zip
0027788: [Untitled File] Hover with mose over element throws exceptionv20091227-1204
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
index af1c00316..bfb464dd4 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
@@ -527,10 +527,14 @@ public class PHPModelUtils {
IField[] fields = PhpModelAccess.getDefault().findFields(fieldName,
MatchRule.EXACT, Modifiers.AccGlobal, 0, scope, null);
- Collection<IField> filteredElements = filterElements(sourceModule,
- Arrays.asList(fields));
- return (IField[]) filteredElements.toArray(new IField[filteredElements
- .size()]);
+ Collection<IField> filteredElements = null;
+ if (fields != null) {
+ filteredElements = filterElements(sourceModule, Arrays
+ .asList(fields));
+ return (IField[]) filteredElements
+ .toArray(new IField[filteredElements.size()]);
+ }
+ return null;
}
/**

Back to the top