From 8d33ff8ec5038b3725363a1c58340f22c913ef55 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 2 Mar 2021 19:31:47 -0500 Subject: [PATCH] Fix password field manipulation bugs. [FIXED] By stubbing the password field's document, we broke some editing capabilities. Stub the document in a way that respects its length. --- .../java/com/lyndir/masterpassword/gui/util/Components.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/util/Components.java b/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/util/Components.java index 218d109f..20793250 100644 --- a/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/util/Components.java +++ b/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/util/Components.java @@ -212,7 +212,7 @@ public abstract class Components { @Override public String getString(final int where, final int len) throws BadLocationException { - return ""; + return new String( new char[this.length()] ); } } ), null, 0 ) { {