1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

Passphrase.isEmpty: also check for validity

This commit is contained in:
Paul Schaub 2020-10-30 12:31:52 +01:00
parent 423a3f1354
commit 8097a9d964
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -98,7 +98,7 @@ public class Passphrase {
*/
public boolean isEmpty() {
synchronized (lock) {
return chars == null;
return valid && chars == null;
}
}