From 5875bc56e8172de4cc43f6009ca76ec2276a9505 Mon Sep 17 00:00:00 2001 From: Bogdan Gheorghe Date: Wed, 6 Jul 2005 04:30:24 +0000 Subject: [PATCH] Fix for 102782 (Part II) --- .../core/search/matching/MethodDeclarationPattern.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java index c289105e0c3..d2046f0831a 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java @@ -250,7 +250,8 @@ public class MethodDeclarationPattern extends CSearchPattern { * @return */ private boolean matchReturnType(char[] tempReturnTypes, char[] tempDecodedReturnTypes) { - if( tempReturnTypes == null || tempDecodedReturnTypes == null ){ + if( (tempReturnTypes == null || tempReturnTypes.length == 0) + || tempDecodedReturnTypes == null ){ return true; //treat null as "*" }