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
1 changed files with 1 additions and 1 deletions

View File

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