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 "*" }