Skip to content

Commit

Permalink
fixed npe
Browse files Browse the repository at this point in the history
  • Loading branch information
daans committed Aug 6, 2018
1 parent efcc452 commit 3013571
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -190,10 +190,13 @@ public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<
}

// add the method declaration of the superclass to the candidates, if present
SymbolReference<ResolvedMethodDeclaration> superClassMethodRef = MethodResolutionLogic.solveMethodInFQN
(getSuperclassFQN(), name, argumentsTypes, staticOnly, typeSolver);
if (superClassMethodRef.isSolved()) {
candidates.add(superClassMethodRef.getCorrespondingDeclaration());
String superclassFQN = getSuperclassFQN();
if (superclassFQN != null) {
SymbolReference<ResolvedMethodDeclaration> superClassMethodRef = MethodResolutionLogic.solveMethodInFQN
(superclassFQN, name, argumentsTypes, staticOnly, typeSolver);
if (superClassMethodRef.isSolved()) {
candidates.add(superClassMethodRef.getCorrespondingDeclaration());
}
}

// add the method declaration of the interfaces to the candidates, if present
Expand Down

0 comments on commit 3013571

Please sign in to comment.