Catch Throwable instead of Exception as NoClassDefError doesn't extend the Exception class

This commit is contained in:
Robin Müller 2016-08-31 15:50:52 +02:00
parent 3fe8d554ed
commit 5b44078209
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class GitLabConnectionConfig extends GlobalConfiguration {
public boolean matches(@NonNull Credentials credentials) {
try {
return credentials instanceof GitLabApiToken || credentials instanceof StringCredentials;
} catch (Exception e) {
} catch (Throwable e) {
return false;
}
}