1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for 102782 (Part II)

This commit is contained in:
Bogdan Gheorghe 2005-07-06 04:30:24 +00:00
parent 4762d82ac6
commit 5875bc56e8

View file

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