Catch Throwable instead of Exception as NoClassDefError doesn't extend the Exception class
This commit is contained in:
parent
3fe8d554ed
commit
5b44078209
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue