Skip to content

Commit

Permalink
IDE-1275: catch IllegalArgumentExceptions in order to avoid error dia…
Browse files Browse the repository at this point in the history
…logs in case of problematic situations for the Spring data code completion processor
  • Loading branch information
martinlippert committed Jan 25, 2013
1 parent cd2542d commit f64bb32
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public static Module getModuleOf(IBean bean) {
private final Class<?> repositoryBaseInterface;

public RepositoryInformation(IType type) {

try {
this.type = type;

Expand Down Expand Up @@ -118,9 +117,11 @@ public static RepositoryInformation create(IType type) {
Assert.notNull(type);

try {
return type.isInterface() ? new RepositoryInformation(type) : null;
return type.isInterface() && type.exists() ? new RepositoryInformation(type) : null;
} catch (JavaModelException e) {
return null;
} catch (IllegalArgumentException e) {
return null;
}
}

Expand Down

0 comments on commit f64bb32

Please sign in to comment.