mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01:00
Passphrase.isEmpty: also check for validity
This commit is contained in:
parent
423a3f1354
commit
8097a9d964
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ public class Passphrase {
|
|||
*/
|
||||
public boolean isEmpty() {
|
||||
synchronized (lock) {
|
||||
return chars == null;
|
||||
return valid && chars == null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue