mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null
Reviewed-by: jpai, xuelei
This commit is contained in:
parent
c1173c24bf
commit
47951655ac
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ public class DisabledAlgorithmConstraints extends AbstractAlgorithmConstraints {
|
|||
throw new IllegalArgumentException("The primitives cannot be null" +
|
||||
" or empty.");
|
||||
}
|
||||
if (algorithm == null || algorithm.isEmpty()) {
|
||||
throw new IllegalArgumentException("No algorithm name specified");
|
||||
}
|
||||
|
||||
if (!cachedCheckAlgorithm(algorithm)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue